aboutsummaryrefslogtreecommitdiff
path: root/taler-kotlin-android
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-09-28 12:12:20 -0300
committerTorsten Grote <t@grobox.de>2020-09-28 14:27:47 -0300
commit0936fc851232c8c6c41ce4a0c479ba7a1e452137 (patch)
tree8e69b1a58319a275901456056558b28643cb8063 /taler-kotlin-android
parent841d87d5f9f05bc4a5e050948af2577cd87efade (diff)
downloadtaler-android-0936fc851232c8c6c41ce4a0c479ba7a1e452137.tar.gz
taler-android-0936fc851232c8c6c41ce4a0c479ba7a1e452137.tar.bz2
taler-android-0936fc851232c8c6c41ce4a0c479ba7a1e452137.zip
[wallet] implement exchange selection for withdrawals
Diffstat (limited to 'taler-kotlin-android')
-rw-r--r--taler-kotlin-android/src/main/java/net/taler/common/Event.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/taler-kotlin-android/src/main/java/net/taler/common/Event.kt b/taler-kotlin-android/src/main/java/net/taler/common/Event.kt
index 779247f..752e20e 100644
--- a/taler-kotlin-android/src/main/java/net/taler/common/Event.kt
+++ b/taler-kotlin-android/src/main/java/net/taler/common/Event.kt
@@ -34,6 +34,10 @@ open class Event<out T>(private val content: T) {
return if (isConsumed.compareAndSet(false, true)) content else null
}
+ fun getEvenIfConsumedAlready(): T {
+ return content
+ }
+
}
fun <T> T.toEvent() = Event(this)