net.sergeych.biserializer.BiSerializable
public class PaidOperation
extends java.lang.Object
implements net.sergeych.biserializer.BiSerializable
Constructor | Description |
---|---|
PaidOperation() |
|
PaidOperation(TransactionPack payment,
java.lang.String operationType,
net.sergeych.tools.Binder operationData) |
Modifier and Type | Method | Description |
---|---|---|
void |
deserialize(net.sergeych.tools.Binder data,
net.sergeych.biserializer.BiDeserializer ds) |
|
HashId |
getId() |
|
net.sergeych.tools.Binder |
getOperationData() |
|
java.lang.String |
getOperationType() |
|
TransactionPack |
getPayment() |
|
Contract |
getPaymentContract() |
|
int |
getQuantaLimit() |
|
byte[] |
pack() |
Return packed binary.
|
protected void |
prepareForNode() |
|
byte[] |
recreatePackedBinary() |
Pack stored payment and operation data to binary, recalculate packedBinary and hashId.
|
net.sergeych.tools.Binder |
serialize(net.sergeych.biserializer.BiSerializer s) |
|
static PaidOperation |
unpack(byte[] packedBin) |
Unpack PaidOperation from binary.
|
public PaidOperation()
public PaidOperation(TransactionPack payment, java.lang.String operationType, net.sergeych.tools.Binder operationData)
public TransactionPack getPayment()
public Contract getPaymentContract()
public java.lang.String getOperationType()
public net.sergeych.tools.Binder getOperationData()
protected void prepareForNode()
public net.sergeych.tools.Binder serialize(net.sergeych.biserializer.BiSerializer s)
serialize
in interface net.sergeych.biserializer.BiSerializable
public void deserialize(net.sergeych.tools.Binder data, net.sergeych.biserializer.BiDeserializer ds) throws java.io.IOException
deserialize
in interface net.sergeych.biserializer.BiSerializable
java.io.IOException
public static PaidOperation unpack(byte[] packedBin)
packedBin
- binary result from pack()
PaidOperation
public byte[] pack()
public byte[] recreatePackedBinary()
public int getQuantaLimit()