Interface TransactionMapper
-
- All Known Implementing Classes:
AbstractTransactionMapper,AccountAddressRestrictionTransactionMapper,AccountMosaicRestrictionTransactionMapper,AccountOperationRestrictionTransactionMapper,GeneralTransactionMapper
public interface TransactionMapperA transaction mapper knows how to map DTO for standard and embedded transactions into aTransactionobject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.nem.sdk.model.transaction.TransactionTypegetTransactionType()The type of transactions this mapper supports.io.nem.sdk.openapi.okhttp_gson.model.TransactionInfoDTOmap(io.nem.sdk.model.transaction.Transaction transaction)It maps an transaction to an DTO transaction.io.nem.sdk.model.transaction.Transactionmap(io.nem.sdk.openapi.okhttp_gson.model.EmbeddedTransactionInfoDTO transactionInfoDTO)It maps an embedded transaction included in an aggregate transaction.io.nem.sdk.model.transaction.Transactionmap(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.EmbeddedTransactionInfoDTOmapToEmbedded(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.
-
-