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? {
|
open fun nonVisualOrImageBasedOrFirst(tanMethods: List<TanMethod>): TanMethod? {
|
||||||
return nonVisual(tanMethods)
|
return nonVisual(tanMethods)
|
||||||
?: imageBased(tanMethods)
|
?: imageBased(tanMethods)
|
||||||
?: first(tanMethods)
|
?: first(tanMethods)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
open fun first(tanMethods: List<TanMethod>): TanMethod? {
|
open fun first(tanMethods: List<TanMethod>): TanMethod? {
|
||||||
return tanMethods.firstOrNull()
|
return tanMethods.firstOrNull()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue