use of io.nem.symbol.sdk.model.namespace.AliasAction in project nem2-sdk-java by nemtech.
the class AddressAliasTransactionMapper method createFactory.
@Override
protected AddressAliasTransactionFactory createFactory(NetworkType networkType, Deadline deadline, AddressAliasTransactionDTO transaction) {
NamespaceId namespaceId = MapperUtils.toNamespaceId(transaction.getNamespaceId());
AliasAction aliasAction = AliasAction.rawValueOf(transaction.getAliasAction().getValue().byteValue());
return AddressAliasTransactionFactory.create(networkType, deadline, aliasAction, namespaceId, MapperUtils.toAddress(transaction.getAddress()));
}
use of io.nem.symbol.sdk.model.namespace.AliasAction in project nem2-sdk-java by nemtech.
the class AddressAliasTransactionMapper method createFactory.
@Override
protected AddressAliasTransactionFactory createFactory(NetworkType networkType, Deadline deadline, AddressAliasTransactionDTO transaction) {
NamespaceId namespaceId = MapperUtils.toNamespaceId(transaction.getNamespaceId());
AliasAction aliasAction = AliasAction.rawValueOf(transaction.getAliasAction().getValue().byteValue());
return AddressAliasTransactionFactory.create(networkType, deadline, aliasAction, namespaceId, toAddress(transaction.getAddress()));
}
use of io.nem.symbol.sdk.model.namespace.AliasAction in project nem2-sdk-java by nemtech.
the class MosaicAliasTransactionMapper method createFactory.
@Override
protected TransactionFactory<MosaicAliasTransaction> createFactory(NetworkType networkType, Deadline deadline, MosaicAliasTransactionDTO transaction) {
NamespaceId namespaceId = MapperUtils.toNamespaceId(transaction.getNamespaceId());
AliasAction aliasAction = AliasAction.rawValueOf(transaction.getAliasAction().getValue().byteValue());
return MosaicAliasTransactionFactory.create(networkType, deadline, aliasAction, namespaceId, MapperUtils.toMosaicId(transaction.getMosaicId()));
}
use of io.nem.symbol.sdk.model.namespace.AliasAction in project nem2-sdk-java by nemtech.
the class MosaicAliasTransactionMapper method createFactory.
@Override
protected TransactionFactory<MosaicAliasTransaction> createFactory(NetworkType networkType, Deadline deadline, MosaicAliasTransactionDTO transaction) {
NamespaceId namespaceId = MapperUtils.toNamespaceId(transaction.getNamespaceId());
AliasAction aliasAction = AliasAction.rawValueOf(transaction.getAliasAction().getValue().byteValue());
return MosaicAliasTransactionFactory.create(networkType, deadline, aliasAction, namespaceId, MapperUtils.toMosaicId(transaction.getMosaicId()));
}
Aggregations