public class DeliveryAttachment extends Attachment.AbstractAttachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachmentAppendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable| Constructor and Description |
|---|
DeliveryAttachment(long purchaseId,
EncryptedData goods,
boolean goodsIsText,
long discountNQT) |
| Modifier and Type | Method and Description |
|---|---|
long |
getDiscountNQT() |
EncryptedData |
getGoods() |
protected int |
getMySize() |
long |
getPurchaseId() |
TransactionType |
getTransactionType() |
boolean |
goodsIsText() |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject attachment) |
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdgetFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytespublic DeliveryAttachment(long purchaseId,
EncryptedData goods,
boolean goodsIsText,
long discountNQT)
protected int getMySize()
getMySize in class Appendix.AbstractAppendixprotected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes in class Appendix.AbstractAppendixprotected void putMyJSON(org.json.simple.JSONObject attachment)
putMyJSON in class Appendix.AbstractAppendixpublic final TransactionType getTransactionType()
public final long getPurchaseId()
public final EncryptedData getGoods()
public final long getDiscountNQT()
public final boolean goodsIsText()