Class AccountMosaicRestrictionTransactionBuilder

  • All Implemented Interfaces:
    Serializer

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

      • AccountMosaicRestrictionTransactionBuilder

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

        protected AccountMosaicRestrictionTransactionBuilder​(SignatureDto signature,
                                                             KeyDto signerPublicKey,
                                                             byte version,
                                                             NetworkTypeDto network,
                                                             EntityTypeDto type,
                                                             AmountDto fee,
                                                             TimestampDto deadline,
                                                             java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags,
                                                             java.util.List<UnresolvedMosaicIdDto> restrictionAdditions,
                                                             java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)
        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.
        restrictionFlags - Account restriction flags.
        restrictionAdditions - Account restriction additions.
        restrictionDeletions - Account restriction deletions.
    • Method Detail

      • loadFromBinary

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

        public static AccountMosaicRestrictionTransactionBuilder create​(SignatureDto signature,
                                                                        KeyDto signerPublicKey,
                                                                        byte version,
                                                                        NetworkTypeDto network,
                                                                        EntityTypeDto type,
                                                                        AmountDto fee,
                                                                        TimestampDto deadline,
                                                                        java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags,
                                                                        java.util.List<UnresolvedMosaicIdDto> restrictionAdditions,
                                                                        java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)
        Creates an instance of AccountMosaicRestrictionTransactionBuilder.
        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.
        restrictionFlags - Account restriction flags.
        restrictionAdditions - Account restriction additions.
        restrictionDeletions - Account restriction deletions.
        Returns:
        Instance of AccountMosaicRestrictionTransactionBuilder.
      • getRestrictionFlags

        public java.util.EnumSet<AccountRestrictionFlagsDto> getRestrictionFlags()
        Gets account restriction flags.
        Returns:
        Account restriction flags.
      • getRestrictionAdditions

        public java.util.List<UnresolvedMosaicIdDto> getRestrictionAdditions()
        Gets account restriction additions.
        Returns:
        Account restriction additions.
      • getRestrictionDeletions

        public java.util.List<UnresolvedMosaicIdDto> getRestrictionDeletions()
        Gets account restriction deletions.
        Returns:
        Account restriction deletions.