public class GeneralTransactionMapper extends java.lang.Object implements TransactionMapper
TransactionMapper registered in this object.| Constructor and Description |
|---|
GeneralTransactionMapper(io.nem.sdk.model.transaction.JsonHelper jsonHelper) |
| Modifier and Type | Method and Description |
|---|---|
io.nem.sdk.model.transaction.JsonHelper |
getJsonHelper() |
io.nem.sdk.model.transaction.TransactionType |
getTransactionType()
The type of transactions this mapper supports.
|
io.nem.sdk.model.transaction.Transaction |
map(io.nem.sdk.openapi.vertx.model.EmbeddedTransactionInfoDTO transactionInfoDTO)
It maps an embedded transaction included in an aggregate transaction.
|
io.nem.sdk.openapi.vertx.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.vertx.model.TransactionInfoDTO transactionInfoDTO)
It maps a general transaction included in a top level json response.
|
io.nem.sdk.openapi.vertx.model.EmbeddedTransactionInfoDTO |
mapToEmbedded(io.nem.sdk.model.transaction.Transaction transaction)
It maps an inner transaction to an embedded DTO transaction.
|
public GeneralTransactionMapper(io.nem.sdk.model.transaction.JsonHelper jsonHelper)
public io.nem.sdk.model.transaction.Transaction map(io.nem.sdk.openapi.vertx.model.EmbeddedTransactionInfoDTO transactionInfoDTO)
TransactionMappermap in interface TransactionMappertransactionInfoDTO - the embedded transactionTransactionpublic io.nem.sdk.model.transaction.Transaction map(io.nem.sdk.openapi.vertx.model.TransactionInfoDTO transactionInfoDTO)
TransactionMappermap in interface TransactionMappertransactionInfoDTO - the the general transactionTransactionpublic io.nem.sdk.openapi.vertx.model.EmbeddedTransactionInfoDTO mapToEmbedded(io.nem.sdk.model.transaction.Transaction transaction)
TransactionMappermapToEmbedded in interface TransactionMappertransaction - the transaction.EmbeddedTransactionInfoDTOpublic io.nem.sdk.openapi.vertx.model.TransactionInfoDTO map(io.nem.sdk.model.transaction.Transaction transaction)
TransactionMappermap in interface TransactionMappertransaction - the the general transactionTransactionInfoDTOpublic io.nem.sdk.model.transaction.TransactionType getTransactionType()
TransactionMappergetTransactionType in interface TransactionMapperpublic io.nem.sdk.model.transaction.JsonHelper getJsonHelper()