Class AccountMosaicRestrictionTransactionMapper

  • All Implemented Interfaces:
    TransactionMapper

    public class AccountMosaicRestrictionTransactionMapper
    extends AbstractTransactionMapper<io.nem.sdk.openapi.okhttp_gson.model.AccountMosaicRestrictionTransactionDTO,​io.nem.sdk.model.transaction.AccountMosaicRestrictionTransaction>
    DTO mapper of AccountMosaicRestrictionTransaction.
    • Constructor Detail

      • AccountMosaicRestrictionTransactionMapper

        public AccountMosaicRestrictionTransactionMapper​(io.nem.sdk.model.transaction.JsonHelper jsonHelper)
    • Method Detail

      • createFactory

        protected io.nem.sdk.model.transaction.AccountMosaicRestrictionTransactionFactory createFactory​(io.nem.sdk.model.blockchain.NetworkType networkType,
                                                                                                        io.nem.sdk.openapi.okhttp_gson.model.AccountMosaicRestrictionTransactionDTO transaction)
        Specified by:
        createFactory in class AbstractTransactionMapper<io.nem.sdk.openapi.okhttp_gson.model.AccountMosaicRestrictionTransactionDTO,​io.nem.sdk.model.transaction.AccountMosaicRestrictionTransaction>
      • copyToDto

        protected void copyToDto​(io.nem.sdk.model.transaction.AccountMosaicRestrictionTransaction transaction,
                                 io.nem.sdk.openapi.okhttp_gson.model.AccountMosaicRestrictionTransactionDTO dto)
        Description copied from class: AbstractTransactionMapper
        Subclasses need to map the values from the transaction model to the transaction dto. Only the specific fields need to be mapped, not the common like maxFee or deadline as they are done in this abstract class.
        Specified by:
        copyToDto in class AbstractTransactionMapper<io.nem.sdk.openapi.okhttp_gson.model.AccountMosaicRestrictionTransactionDTO,​io.nem.sdk.model.transaction.AccountMosaicRestrictionTransaction>
        Parameters:
        transaction - the transaction model
        dto - the transaction dto.