public class MosaicGlobalRestrictionTransactionFactory extends TransactionFactory<MosaicGlobalRestrictionTransaction>
MosaicGlobalRestrictionTransaction
Modifier and Type | Method and Description |
---|---|
MosaicGlobalRestrictionTransaction |
build() |
static MosaicGlobalRestrictionTransactionFactory |
create(NetworkType networkType,
Deadline deadline,
UnresolvedMosaicId mosaicId,
java.math.BigInteger restrictionKey,
java.math.BigInteger newRestrictionValue,
MosaicRestrictionType newRestrictionType)
Static create method for factory.
|
UnresolvedMosaicId |
getMosaicId()
Returns the mosaic id.
|
MosaicRestrictionType |
getNewRestrictionType()
Returns the new mosaic restriction type.
|
java.math.BigInteger |
getNewRestrictionValue() |
MosaicRestrictionType |
getPreviousRestrictionType()
Returns the previous mosaic restriction type.
|
java.math.BigInteger |
getPreviousRestrictionValue()
Returns the previous restriction value.
|
UnresolvedMosaicId |
getReferenceMosaicId()
Returns the reference mosaic id.
|
java.math.BigInteger |
getRestrictionKey()
Returns the restriction key.
|
MosaicGlobalRestrictionTransactionFactory |
previousRestrictionType(MosaicRestrictionType previousRestrictionType)
This method changes previousRestrictionType.
|
MosaicGlobalRestrictionTransactionFactory |
previousRestrictionValue(java.math.BigInteger previousRestrictionValue)
This method changes previousRestrictionValue.
|
MosaicGlobalRestrictionTransactionFactory |
referenceMosaicId(UnresolvedMosaicId referenceMosaicId)
This method sets referenceMosaicId.
|
calculateMaxFeeFromMultiplier, deadline, getDeadline, getGroup, getMaxFee, getNetworkType, getProvidedSize, getSignature, getSigner, getSize, getTransactionInfo, getType, getVersion, group, maxFee, signature, signer, size, transactionInfo, version
public static MosaicGlobalRestrictionTransactionFactory create(NetworkType networkType, Deadline deadline, UnresolvedMosaicId mosaicId, java.math.BigInteger restrictionKey, java.math.BigInteger newRestrictionValue, MosaicRestrictionType newRestrictionType)
networkType
- NetworkType
deadline
- the deadlinemosaicId
- UnresolvedMosaicId
restrictionKey
- Restriction key.newRestrictionValue
- New restriction value.newRestrictionType
- MosaicRestrictionType
New restriction type.public MosaicGlobalRestrictionTransaction build()
build
in class TransactionFactory<MosaicGlobalRestrictionTransaction>
public UnresolvedMosaicId getMosaicId()
UnresolvedMosaicId
public UnresolvedMosaicId getReferenceMosaicId()
UnresolvedMosaicId
public java.math.BigInteger getRestrictionKey()
public java.math.BigInteger getPreviousRestrictionValue()
public MosaicRestrictionType getPreviousRestrictionType()
MosaicRestrictionType
public java.math.BigInteger getNewRestrictionValue()
public MosaicRestrictionType getNewRestrictionType()
MosaicRestrictionType
public MosaicGlobalRestrictionTransactionFactory referenceMosaicId(UnresolvedMosaicId referenceMosaicId)
referenceMosaicId
- the new referenceMosaicIdpublic MosaicGlobalRestrictionTransactionFactory previousRestrictionType(MosaicRestrictionType previousRestrictionType)
previousRestrictionType
- the new previousRestrictionTypepublic MosaicGlobalRestrictionTransactionFactory previousRestrictionValue(java.math.BigInteger previousRestrictionValue)
previousRestrictionValue
- the new previousRestrictionValue