public final class PollCreationAttachment extends Attachment.AbstractAttachment
| Modifier and Type | Class and Description |
|---|---|
static class |
PollCreationAttachment.PollBuilder |
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachmentAppendix.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, 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 PollCreationAttachment(java.nio.ByteBuffer buffer)
throws NxtException.NotValidException
NxtException.NotValidExceptionpublic PollCreationAttachment(org.json.simple.JSONObject attachmentData)
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 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()