Interface TransactionMapper

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.nem.sdk.model.transaction.TransactionType getTransactionType()
      The type of transactions this mapper supports.
      io.nem.sdk.openapi.okhttp_gson.model.TransactionInfoDTO map​(io.nem.sdk.model.transaction.Transaction transaction)
      It maps an transaction to an DTO transaction.
      io.nem.sdk.model.transaction.Transaction map​(io.nem.sdk.openapi.okhttp_gson.model.EmbeddedTransactionInfoDTO transactionInfoDTO)
      It maps an embedded transaction included in an aggregate transaction.
      io.nem.sdk.model.transaction.Transaction map​(io.nem.sdk.openapi.okhttp_gson.model.TransactionInfoDTO transactionInfoDTO)
      It maps a general transaction included in a top level json response.
      io.nem.sdk.openapi.okhttp_gson.model.EmbeddedTransactionInfoDTO mapToEmbedded​(io.nem.sdk.model.transaction.Transaction transaction)
      It maps an inner transaction to an embedded DTO transaction.
    • Method Detail

      • map

        io.nem.sdk.model.transaction.Transaction map​(io.nem.sdk.openapi.okhttp_gson.model.EmbeddedTransactionInfoDTO transactionInfoDTO)
        It maps an embedded transaction included in an aggregate transaction.
        Parameters:
        transactionInfoDTO - the embedded transaction
        Returns:
        the Transaction
      • map

        io.nem.sdk.model.transaction.Transaction map​(io.nem.sdk.openapi.okhttp_gson.model.TransactionInfoDTO transactionInfoDTO)
        It maps a general transaction included in a top level json response.
        Parameters:
        transactionInfoDTO - the the general transaction
        Returns:
        the Transaction
      • mapToEmbedded

        io.nem.sdk.openapi.okhttp_gson.model.EmbeddedTransactionInfoDTO mapToEmbedded​(io.nem.sdk.model.transaction.Transaction transaction)
        It maps an inner transaction to an embedded DTO transaction.
        Parameters:
        transaction - the transaction.
        Returns:
        the EmbeddedTransactionInfoDTO
      • map

        io.nem.sdk.openapi.okhttp_gson.model.TransactionInfoDTO map​(io.nem.sdk.model.transaction.Transaction transaction)
        It maps an transaction to an DTO transaction.
        Parameters:
        transaction - the the general transaction
        Returns:
        the TransactionInfoDTO
      • getTransactionType

        io.nem.sdk.model.transaction.TransactionType getTransactionType()
        The type of transactions this mapper supports.
        Returns:
        the supported transaction type or null if supports all.