Updated on 2026-08-14
This commit is contained in:
parent
5988ef1834
commit
bdaa181aec
13 changed files with 790 additions and 0 deletions
|
|
@ -13,4 +13,12 @@ import com.tangem.domain.swap.models.SwapDirection.Reverse
|
|||
enum class SwapDirection {
|
||||
Direct,
|
||||
Reverse,
|
||||
;
|
||||
|
||||
companion object {
|
||||
inline fun <T> SwapDirection.withSwapDirection(onDirect: () -> T, onReverse: () -> T): T = when (this) {
|
||||
Direct -> onDirect()
|
||||
Reverse -> onReverse()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue