Class AccountMosaicRestrictionTransactionMapper

  • All Implemented Interfaces:
    io.nem.symbol.sdk.infrastructure.TransactionMapper

    public class AccountMosaicRestrictionTransactionMapper
    extends AbstractTransactionMapper<io.nem.symbol.sdk.openapi.vertx.model.AccountMosaicRestrictionTransactionDTO,​io.nem.symbol.sdk.model.transaction.AccountMosaicRestrictionTransaction>
    DTO mapper of AccountMosaicRestrictionTransaction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void copyToDto​(io.nem.symbol.sdk.model.transaction.AccountMosaicRestrictionTransaction transaction, io.nem.symbol.sdk.openapi.vertx.model.AccountMosaicRestrictionTransactionDTO dto)
      Subclasses need to map the values from the transaction model to the transaction dto.
      protected io.nem.symbol.sdk.model.transaction.AccountMosaicRestrictionTransactionFactory createFactory​(io.nem.symbol.sdk.model.network.NetworkType networkType, io.nem.symbol.sdk.model.transaction.Deadline deadline, io.nem.symbol.sdk.openapi.vertx.model.AccountMosaicRestrictionTransactionDTO transaction)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.nem.symbol.sdk.infrastructure.TransactionMapper

        getVersion, mapToDto
    • Constructor Detail

      • AccountMosaicRestrictionTransactionMapper

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

      • createFactory

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

        protected void copyToDto​(io.nem.symbol.sdk.model.transaction.AccountMosaicRestrictionTransaction transaction,
                                 io.nem.symbol.sdk.openapi.vertx.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.symbol.sdk.openapi.vertx.model.AccountMosaicRestrictionTransactionDTO,​io.nem.symbol.sdk.model.transaction.AccountMosaicRestrictionTransaction>
        Parameters:
        transaction - the transaction model
        dto - the transaction dto.