Class EmbeddedAccountMosaicRestrictionTransactionBuilder

  • All Implemented Interfaces:
    Serializer

    public final class EmbeddedAccountMosaicRestrictionTransactionBuilder
    extends EmbeddedTransactionBuilder
    implements Serializer
    Binary layout for an embedded account mosaic restriction transaction.
    • Constructor Detail

      • EmbeddedAccountMosaicRestrictionTransactionBuilder

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

        protected EmbeddedAccountMosaicRestrictionTransactionBuilder​(KeyDto signerPublicKey,
                                                                     byte version,
                                                                     NetworkTypeDto network,
                                                                     EntityTypeDto type,
                                                                     java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags,
                                                                     java.util.List<UnresolvedMosaicIdDto> restrictionAdditions,
                                                                     java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)
        Constructor.
        Parameters:
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        restrictionFlags - Account restriction flags.
        restrictionAdditions - Account restriction additions.
        restrictionDeletions - Account restriction deletions.
    • Method Detail

      • create

        public static EmbeddedAccountMosaicRestrictionTransactionBuilder create​(KeyDto signerPublicKey,
                                                                                byte version,
                                                                                NetworkTypeDto network,
                                                                                EntityTypeDto type,
                                                                                java.util.EnumSet<AccountRestrictionFlagsDto> restrictionFlags,
                                                                                java.util.List<UnresolvedMosaicIdDto> restrictionAdditions,
                                                                                java.util.List<UnresolvedMosaicIdDto> restrictionDeletions)
        Creates an instance of EmbeddedAccountMosaicRestrictionTransactionBuilder.
        Parameters:
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        restrictionFlags - Account restriction flags.
        restrictionAdditions - Account restriction additions.
        restrictionDeletions - Account restriction deletions.
        Returns:
        Instance of EmbeddedAccountMosaicRestrictionTransactionBuilder.
      • 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.
      • loadFromBinary

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