diff options
author | Torsten Grote <t@grobox.de> | 2020-08-11 15:24:25 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-08-11 16:08:56 -0300 |
commit | d13be7c5c1be2492d38959a29e1b1c33df4938ff (patch) | |
tree | 3e4ae91e98c0388289779b3f8d972df196aa6a49 /wallet/src/main/java/net/taler/wallet/withdraw/TosSection.kt | |
parent | f0670e2f3936f0223c02e9ec0d0de52f31a3539f (diff) | |
download | taler-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.kt | 7 |
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 +) |