public final class PollCreationAttachment extends Attachment.AbstractAttachment
Modifier and Type | Class and Description |
---|---|
static class |
PollCreationAttachment.PollBuilder |
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable
Constructor and Description |
---|
PollCreationAttachment(java.nio.ByteBuffer buffer) |
PollCreationAttachment(org.json.simple.JSONObject attachmentData) |
Modifier and Type | Method and Description |
---|---|
int |
getFinishHeight() |
byte |
getMaxNumberOfOptions() |
byte |
getMaxRangeValue() |
byte |
getMinNumberOfOptions() |
byte |
getMinRangeValue() |
protected int |
getMySize() |
java.lang.String |
getPollDescription() |
java.lang.String |
getPollName() |
java.lang.String[] |
getPollOptions() |
TransactionType |
getTransactionType() |
VoteWeighting |
getVoteWeighting() |
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, validateId
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytes
public PollCreationAttachment(java.nio.ByteBuffer buffer) throws NxtException.NotValidException
NxtException.NotValidException
public PollCreationAttachment(org.json.simple.JSONObject attachmentData)
protected int getMySize()
getMySize
in class Appendix.AbstractAppendix
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class Appendix.AbstractAppendix
protected void putMyJSON(org.json.simple.JSONObject attachment)
putMyJSON
in class Appendix.AbstractAppendix
public TransactionType getTransactionType()
public java.lang.String getPollName()
public java.lang.String getPollDescription()
public int getFinishHeight()
public java.lang.String[] getPollOptions()
public byte getMinNumberOfOptions()
public byte getMaxNumberOfOptions()
public byte getMinRangeValue()
public byte getMaxRangeValue()
public VoteWeighting getVoteWeighting()