diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/util/TanMethodSelector.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/util/TanMethodSelector.kt index a8cd064b..dc315c6a 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/util/TanMethodSelector.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/util/TanMethodSelector.kt @@ -54,12 +54,18 @@ open class TanMethodSelector { } + open fun nonVisualOrImageBased(tanMethods: List): TanMethod? { + return nonVisual(tanMethods) + ?: imageBased(tanMethods) + } + open fun nonVisualOrImageBasedOrFirst(tanMethods: List): TanMethod? { return nonVisual(tanMethods) ?: imageBased(tanMethods) ?: first(tanMethods) } + open fun first(tanMethods: List): TanMethod? { return tanMethods.firstOrNull() }