Implemented setting account's displayIndex
This commit is contained in:
parent
cb45c181ae
commit
a680b6534c
|
@ -120,7 +120,8 @@ open class FinTs4kMapper {
|
|||
protected open fun mapUser(user: net.dankito.banking.client.model.CustomerAccount) = User(
|
||||
user.bankCode, user.loginName, user.password,
|
||||
user.bankName, user.bic, user.customerName, user.userId,
|
||||
user.accounts.map { mapAccount(it) },
|
||||
user.accounts.map { mapAccount(it) }.sortedBy { it.type }
|
||||
.onEachIndexed { index, bankAccount -> bankAccount.displayIndex = index },
|
||||
|
||||
user.selectedTanMethod?.securityFunction?.code, user.tanMethods.map { mapTanMethod(it) },
|
||||
user.selectedTanMedium?.mediumName, user.tanMedia.map { mapTanMedium(it) },
|
||||
|
|
Loading…
Reference in New Issue