Class AccountOperationRestrictionTransactionMapper

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

    public class AccountOperationRestrictionTransactionMapper
    extends AbstractTransactionMapper<io.nem.symbol.sdk.openapi.vertx.model.AccountOperationRestrictionTransactionDTO,​io.nem.symbol.sdk.model.transaction.AccountOperationRestrictionTransaction>
    DTO mapper of AccountOperationRestrictionTransaction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void copyToDto​(io.nem.symbol.sdk.model.transaction.AccountOperationRestrictionTransaction transaction, io.nem.symbol.sdk.openapi.vertx.model.AccountOperationRestrictionTransactionDTO dto)
      Subclasses need to map the values from the transaction model to the transaction dto.
      protected io.nem.symbol.sdk.model.transaction.AccountOperationRestrictionTransactionFactory createFactory​(io.nem.symbol.sdk.model.network.NetworkType networkType, io.nem.symbol.sdk.model.transaction.Deadline deadline, io.nem.symbol.sdk.openapi.vertx.model.AccountOperationRestrictionTransactionDTO 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

      • AccountOperationRestrictionTransactionMapper

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

      • createFactory

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

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