Added nonVisualOrImageBased()
This commit is contained in:
parent
6d48382a7e
commit
796218c2d6
|
@ -54,12 +54,18 @@ open class TanMethodSelector {
|
|||
}
|
||||
|
||||
|
||||
open fun nonVisualOrImageBased(tanMethods: List<TanMethod>): TanMethod? {
|
||||
return nonVisual(tanMethods)
|
||||
?: imageBased(tanMethods)
|
||||
}
|
||||
|
||||
open fun nonVisualOrImageBasedOrFirst(tanMethods: List<TanMethod>): TanMethod? {
|
||||
return nonVisual(tanMethods)
|
||||
?: imageBased(tanMethods)
|
||||
?: first(tanMethods)
|
||||
}
|
||||
|
||||
|
||||
open fun first(tanMethods: List<TanMethod>): TanMethod? {
|
||||
return tanMethods.firstOrNull()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue