Added properties to sort accounts, tanMethods and tanMedia
This commit is contained in:
parent
ac3bc57875
commit
5964fc611c
|
@ -76,6 +76,19 @@ open class BankAccess(
|
|||
get() = userSetDisplayName ?: bankName
|
||||
|
||||
|
||||
@get:JsonIgnore
|
||||
open val accountsSorted: List<out BankAccount>
|
||||
get() = accounts.sortedBy { it.displayIndex }
|
||||
|
||||
@get:JsonIgnore
|
||||
open val tanMethodsSorted: List<out TanMethod>
|
||||
get() = tanMethods.sortedBy { it.identifier }
|
||||
|
||||
@get:JsonIgnore
|
||||
open val tanMediaSorted: List<out TanMedium>
|
||||
get() = tanMedia.sortedBy { it.status }
|
||||
|
||||
|
||||
@get:JsonIgnore
|
||||
val selectedTanMethod: TanMethod
|
||||
get() = tanMethods.first { it.identifier == selectedTanMethodIdentifier }
|
||||
|
|
Loading…
Reference in New Issue