public static final class Attachment.MessagingPollCreation extends java.lang.Object implements Attachment, java.io.Serializable
Attachment.AccountControlEffectiveBalanceLeasing, Attachment.ColoredCoinsAskOrderCancellation, Attachment.ColoredCoinsAskOrderPlacement, Attachment.ColoredCoinsAssetIssuance, Attachment.ColoredCoinsAssetTransfer, Attachment.ColoredCoinsBidOrderCancellation, Attachment.ColoredCoinsBidOrderPlacement, Attachment.ColoredCoinsOrderCancellation, Attachment.ColoredCoinsOrderPlacement, Attachment.DigitalGoodsDelisting, Attachment.DigitalGoodsDelivery, Attachment.DigitalGoodsFeedback, Attachment.DigitalGoodsListing, Attachment.DigitalGoodsPriceChange, Attachment.DigitalGoodsPurchase, Attachment.DigitalGoodsQuantityChange, Attachment.DigitalGoodsRefund, Attachment.MessagingAccountInfo, Attachment.MessagingAliasAssignment, Attachment.MessagingArbitraryMessage, Attachment.MessagingHubAnnouncement, Attachment.MessagingPollCreation, Attachment.MessagingVoteCasting
Constructor and Description |
---|
Attachment.MessagingPollCreation(java.lang.String pollName,
java.lang.String pollDescription,
java.lang.String[] pollOptions,
byte minNumberOfOptions,
byte maxNumberOfOptions,
boolean optionsAreBinary) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
org.json.simple.JSONObject |
getJSONObject() |
byte |
getMaxNumberOfOptions() |
byte |
getMinNumberOfOptions() |
java.lang.String |
getPollDescription() |
java.lang.String |
getPollName() |
java.lang.String[] |
getPollOptions() |
int |
getSize() |
TransactionType |
getTransactionType() |
boolean |
isOptionsAreBinary() |
public Attachment.MessagingPollCreation(java.lang.String pollName, java.lang.String pollDescription, java.lang.String[] pollOptions, byte minNumberOfOptions, byte maxNumberOfOptions, boolean optionsAreBinary)
public int getSize()
getSize
in interface Attachment
public byte[] getBytes()
getBytes
in interface Attachment
public org.json.simple.JSONObject getJSONObject()
getJSONObject
in interface Attachment
public TransactionType getTransactionType()
getTransactionType
in interface Attachment
public java.lang.String getPollName()
public java.lang.String getPollDescription()
public java.lang.String[] getPollOptions()
public byte getMinNumberOfOptions()
public byte getMaxNumberOfOptions()
public boolean isOptionsAreBinary()