Added properties to sort accounts, tanMethods and tanMedia

This commit is contained in:
dankito 2024-09-18 02:13:35 +02:00
parent ac3bc57875
commit 5964fc611c
1 changed files with 13 additions and 0 deletions

View File

@ -76,6 +76,19 @@ open class BankAccess(
get() = userSetDisplayName ?: bankName 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 @get:JsonIgnore
val selectedTanMethod: TanMethod val selectedTanMethod: TanMethod
get() = tanMethods.first { it.identifier == selectedTanMethodIdentifier } get() = tanMethods.first { it.identifier == selectedTanMethodIdentifier }