summaryrefslogtreecommitdiff
path: root/wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-05-14 11:01:07 -0300
committerTorsten Grote <t@grobox.de>2020-05-15 14:26:42 -0300
commit171a1ae228b801d5c0d54c6c7e7ad8aa458d6bce (patch)
tree765016dc7b6bc9d3c10fe69ec50f52b9e94b3366 /wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt
parentbedd7b05eb0b5ee69cd5f35b283e713cf8af29dc (diff)
downloadtaler-android-171a1ae228b801d5c0d54c6c7e7ad8aa458d6bce.tar.gz
taler-android-171a1ae228b801d5c0d54c6c7e7ad8aa458d6bce.tar.bz2
taler-android-171a1ae228b801d5c0d54c6c7e7ad8aa458d6bce.zip
[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.
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt')
-rw-r--r--wallet/src/main/java/net/taler/wallet/transactions/Transactions.kt7
1 files changed, 6 insertions, 1 deletions
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,