Added nonVisualOrImageBased()
This commit is contained in:
parent
6d48382a7e
commit
796218c2d6
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue