From 171a1ae228b801d5c0d54c6c7e7ad8aa458d6bce Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 14 May 2020 11:01:07 -0300 Subject: [wallet] clean up old history code that not needed anymore The history is now only for debugging visible in dev mode, so it is sufficient to show JSON and not parse all its fields. --- wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt') diff --git a/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt b/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt index 2a0da3c..7310142 100644 --- a/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt +++ b/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt @@ -32,7 +32,6 @@ import net.taler.common.ContractProduct import net.taler.common.Timestamp import net.taler.wallet.R import net.taler.wallet.cleanExchange -import net.taler.wallet.history.AmountType @JsonTypeInfo(use = NAME, include = PROPERTY, property = "type") @JsonSubTypes( @@ -60,6 +59,12 @@ abstract class Transaction( abstract fun getTitle(context: Context): String } +sealed class AmountType { + object Positive : AmountType() + object Negative : AmountType() + object Neutral : AmountType() +} + @JsonTypeName("withdrawal") class TransactionWithdrawal( transactionId: String, -- cgit v1.2.3