Class MosaicGlobalRestrictionTransactionBuilder

  • All Implemented Interfaces:
    Serializer

    public class MosaicGlobalRestrictionTransactionBuilder
    extends TransactionBuilder
    implements Serializer
    Binary layout for a non-embedded mosaic global restriction transaction
    • Constructor Detail

      • MosaicGlobalRestrictionTransactionBuilder

        protected MosaicGlobalRestrictionTransactionBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • MosaicGlobalRestrictionTransactionBuilder

        protected MosaicGlobalRestrictionTransactionBuilder​(SignatureDto signature,
                                                            KeyDto signerPublicKey,
                                                            byte version,
                                                            NetworkTypeDto network,
                                                            EntityTypeDto type,
                                                            AmountDto fee,
                                                            TimestampDto deadline,
                                                            UnresolvedMosaicIdDto mosaicId,
                                                            UnresolvedMosaicIdDto referenceMosaicId,
                                                            long restrictionKey,
                                                            long previousRestrictionValue,
                                                            long newRestrictionValue,
                                                            MosaicRestrictionTypeDto previousRestrictionType,
                                                            MosaicRestrictionTypeDto newRestrictionType)
        Constructor.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        mosaicId - Identifier of the mosaic being restricted.
        referenceMosaicId - Identifier of the mosaic providing the restriction key.
        restrictionKey - Restriction key relative to the reference mosaic identifier.
        previousRestrictionValue - Previous restriction value.
        newRestrictionValue - New restriction value.
        previousRestrictionType - Previous restriction type.
        newRestrictionType - New restriction type.
    • Method Detail

      • loadFromBinary

        public static MosaicGlobalRestrictionTransactionBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of MosaicGlobalRestrictionTransactionBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of MosaicGlobalRestrictionTransactionBuilder.
      • create

        public static MosaicGlobalRestrictionTransactionBuilder create​(SignatureDto signature,
                                                                       KeyDto signerPublicKey,
                                                                       byte version,
                                                                       NetworkTypeDto network,
                                                                       EntityTypeDto type,
                                                                       AmountDto fee,
                                                                       TimestampDto deadline,
                                                                       UnresolvedMosaicIdDto mosaicId,
                                                                       UnresolvedMosaicIdDto referenceMosaicId,
                                                                       long restrictionKey,
                                                                       long previousRestrictionValue,
                                                                       long newRestrictionValue,
                                                                       MosaicRestrictionTypeDto previousRestrictionType,
                                                                       MosaicRestrictionTypeDto newRestrictionType)
        Creates an instance of MosaicGlobalRestrictionTransactionBuilder.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        mosaicId - Identifier of the mosaic being restricted.
        referenceMosaicId - Identifier of the mosaic providing the restriction key.
        restrictionKey - Restriction key relative to the reference mosaic identifier.
        previousRestrictionValue - Previous restriction value.
        newRestrictionValue - New restriction value.
        previousRestrictionType - Previous restriction type.
        newRestrictionType - New restriction type.
        Returns:
        Instance of MosaicGlobalRestrictionTransactionBuilder.
      • getMosaicId

        public UnresolvedMosaicIdDto getMosaicId()
        Gets identifier of the mosaic being restricted.
        Returns:
        Identifier of the mosaic being restricted.
      • getReferenceMosaicId

        public UnresolvedMosaicIdDto getReferenceMosaicId()
        Gets identifier of the mosaic providing the restriction key.
        Returns:
        Identifier of the mosaic providing the restriction key.
      • getRestrictionKey

        public long getRestrictionKey()
        Gets restriction key relative to the reference mosaic identifier.
        Returns:
        Restriction key relative to the reference mosaic identifier.
      • getPreviousRestrictionValue

        public long getPreviousRestrictionValue()
        Gets previous restriction value.
        Returns:
        Previous restriction value.
      • getNewRestrictionValue

        public long getNewRestrictionValue()
        Gets new restriction value.
        Returns:
        New restriction value.
      • getPreviousRestrictionType

        public MosaicRestrictionTypeDto getPreviousRestrictionType()
        Gets previous restriction type.
        Returns:
        Previous restriction type.
      • getNewRestrictionType

        public MosaicRestrictionTypeDto getNewRestrictionType()
        Gets new restriction type.
        Returns:
        New restriction type.