Class TransactionResultImpl
java.lang.Object
org.core.eco.transaction.result.impl.TransactionResultImpl
- All Implemented Interfaces:
TransactionResult
-
Constructor Summary
ConstructorDescriptionTransactionResultImpl(@NotNull Transaction transaction, @NotNull BigDecimal original, @NotNull String errorMessage)
TransactionResultImpl(@NotNull Transaction transaction, BigDecimal original, @NotNull BigDecimal after)
-
Method Summary
Modifier and TypeMethodDescription@NotNull BigDecimal
@NotNull BigDecimal
@NotNull Transaction
boolean
-
Constructor Details
-
TransactionResultImpl
public TransactionResultImpl(@NotNull @NotNull Transaction transaction, @NotNull @NotNull BigDecimal original, @NotNull @NotNull String errorMessage) -
TransactionResultImpl
public TransactionResultImpl(@NotNull @NotNull Transaction transaction, BigDecimal original, @NotNull @NotNull BigDecimal after)
-
-
Method Details
-
getTransaction
- Specified by:
getTransaction
in interfaceTransactionResult
-
wasSuccessful
public boolean wasSuccessful()- Specified by:
wasSuccessful
in interfaceTransactionResult
-
getOriginalAmount
- Specified by:
getOriginalAmount
in interfaceTransactionResult
-
getAfterAmount
- Specified by:
getAfterAmount
in interfaceTransactionResult
-
getFailedReason
- Specified by:
getFailedReason
in interfaceTransactionResult
-