public class VoteTransactionBuilder extends java.lang.Object implements VoteTransaction.WithNothing, VoteTransaction.WithChainIdHash, VoteTransaction.WithChainIdHashAndSender, VoteTransaction.WithChainIdHashAndSenderAndNonce, VoteTransaction.WithChainIdHashAndSenderAndNonceAndVoteId, VoteTransaction.WithReady
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
candidates |
protected PlainTransactionBuilder |
delegate |
protected java.lang.String |
voteId |
Constructor and Description |
---|
VoteTransactionBuilder() |
Modifier and Type | Method and Description |
---|---|
RawTransaction |
build()
Build raw transaction with provided values.
|
VoteTransaction.WithReady |
candidates(java.util.List<java.lang.String> candidates)
Accept candidates to be voted.
|
VoteTransaction.WithChainIdHash |
chainIdHash(ChainIdHash chainIdHash)
Accept
chainIdHash to be used in transaction. |
VoteTransaction.WithChainIdHashAndSender |
from(Identity sender)
Accept transaction sender.
|
VoteTransaction.WithChainIdHashAndSender |
from(java.lang.String senderName)
Accept transaction sender as an account address or an name.
|
VoteTransaction.WithChainIdHashAndSenderAndNonce |
nonce(long nonce)
Accept
nonce to be used in transaction. |
VoteTransaction.WithChainIdHashAndSenderAndNonceAndVoteId |
voteId(java.lang.String voteId)
Accept a vote id.
|
protected java.lang.String voteId
protected java.util.List<java.lang.String> candidates
protected final PlainTransactionBuilder delegate
public VoteTransaction.WithChainIdHash chainIdHash(ChainIdHash chainIdHash)
NeedChainIdHash
chainIdHash
to be used in transaction.chainIdHash
in interface NeedChainIdHash<VoteTransaction.WithChainIdHash>
chainIdHash
- a chain id hashpublic VoteTransaction.WithChainIdHashAndSender from(java.lang.String senderName)
NeedSender
from
in interface NeedSender<VoteTransaction.WithChainIdHashAndSender>
senderName
- a senderpublic VoteTransaction.WithChainIdHashAndSender from(Identity sender)
NeedSender
from
in interface NeedSender<VoteTransaction.WithChainIdHashAndSender>
sender
- a senderpublic VoteTransaction.WithChainIdHashAndSenderAndNonce nonce(long nonce)
NeedNonce
nonce
to be used in transaction.nonce
in interface NeedNonce<VoteTransaction.WithChainIdHashAndSenderAndNonce>
nonce
- a noncepublic VoteTransaction.WithChainIdHashAndSenderAndNonceAndVoteId voteId(java.lang.String voteId)
VoteTransaction.WithChainIdHashAndSenderAndNonce
voteId
in interface VoteTransaction.WithChainIdHashAndSenderAndNonce
voteId
- a vote idpublic VoteTransaction.WithReady candidates(java.util.List<java.lang.String> candidates)
VoteTransaction.WithChainIdHashAndSenderAndNonceAndVoteId
candidates
in interface VoteTransaction.WithChainIdHashAndSenderAndNonceAndVoteId
candidates
- candidates to be votedpublic RawTransaction build()
BuildReady
build
in interface BuildReady