summaryrefslogtreecommitdiff
path: root/wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-08-11 15:24:25 -0300
committerTorsten Grote <t@grobox.de>2020-08-11 16:08:56 -0300
commitd13be7c5c1be2492d38959a29e1b1c33df4938ff (patch)
tree3e4ae91e98c0388289779b3f8d972df196aa6a49 /wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt
parentf0670e2f3936f0223c02e9ec0d0de52f31a3539f (diff)
downloadtaler-android-d13be7c5c1be2492d38959a29e1b1c33df4938ff.tar.gz
taler-android-d13be7c5c1be2492d38959a29e1b1c33df4938ff.tar.bz2
taler-android-d13be7c5c1be2492d38959a29e1b1c33df4938ff.zip
[wallet] start to move deserialization into the backend API
and off the UI thread for less sluggish, i.e. more responsive UI
Diffstat (limited to 'wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt')
-rw-r--r--wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt b/wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt
index b27de42..b198478 100644
--- a/wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt
+++ b/wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt
@@ -17,6 +17,7 @@
package net.taler.wallet.withdraw
import io.noties.markwon.Markwon
+import kotlinx.serialization.Serializable
import org.commonmark.node.Code
import org.commonmark.node.Document
import org.commonmark.node.Heading
@@ -73,3 +74,9 @@ private fun getNodeText(rootNode: Node): String {
}
return text
}
+
+@Serializable
+data class TosResponse(
+ val tos: String,
+ val currentEtag: String
+)