Added savePassword to Bank but now using it yet

This commit is contained in:
dankito 2020-09-30 00:04:22 +02:00
parent 5580313eeb
commit 0303f94bee
4 changed files with 8 additions and 5 deletions

View File

@ -37,7 +37,7 @@ open class BankData(
override var tanMedia: List<TanMedium> = listOf() override var tanMedia: List<TanMedium> = listOf()
override var countDaysForWhichTransactionsAreKept: Int? = null override var savePassword: Boolean = true
override var userSetDisplayName: String? = null override var userSetDisplayName: String? = null

View File

@ -31,6 +31,8 @@ interface IBankData<TAccount: IBankAccount<TAccountTransaction>, TAccountTransac
var selectedTanMethod: TanMethod? var selectedTanMethod: TanMethod?
var tanMedia: List<TanMedium> var tanMedia: List<TanMedium>
var savePassword: Boolean
var userSetDisplayName: String? var userSetDisplayName: String?
var technicalId: String var technicalId: String

View File

@ -79,6 +79,7 @@
<attribute name="finTsServerAddress" attributeType="String"/> <attribute name="finTsServerAddress" attributeType="String"/>
<attribute name="iconUrl" optional="YES" attributeType="String"/> <attribute name="iconUrl" optional="YES" attributeType="String"/>
<attribute name="password" attributeType="String"/> <attribute name="password" attributeType="String"/>
<attribute name="savePassword" attributeType="Boolean" defaultValueString="YES" usesScalarValueType="YES"/>
<attribute name="selectedTanMethodCode" optional="YES" attributeType="String"/> <attribute name="selectedTanMethodCode" optional="YES" attributeType="String"/>
<attribute name="userId" attributeType="String"/> <attribute name="userId" attributeType="String"/>
<attribute name="userName" attributeType="String"/> <attribute name="userName" attributeType="String"/>

View File

@ -8,8 +8,7 @@ class Mapper {
func map(_ bank: PersistedBankData) -> IBankData { func map(_ bank: PersistedBankData) -> IBankData {
let mapped = BankData(bankCode: map(bank.bankCode), userName: map(bank.userName), password: map(bank.password), finTsServerAddress: map(bank.finTsServerAddress), bankName: map(bank.bankName), bic: map(bank.bic), customerName: map(bank.customerName), userId: map(bank.userId), iconUrl: bank.iconUrl, accounts: []) let mapped = BankData(bankCode: map(bank.bankCode), userName: map(bank.userName), password: map(bank.password), finTsServerAddress: map(bank.finTsServerAddress), bankName: map(bank.bankName), bic: map(bank.bic), customerName: map(bank.customerName), userId: map(bank.userId), iconUrl: bank.iconUrl, accounts: [])
mapped.countDaysForWhichTransactionsAreKept = mapToInt(bank.countDaysForWhichTransactionsAreKept) mapped.savePassword = bank.savePassword
mapped.userSetDisplayName = bank.userSetDisplayName mapped.userSetDisplayName = bank.userSetDisplayName
mapped.displayIndex = bank.displayIndex mapped.displayIndex = bank.displayIndex
@ -38,6 +37,7 @@ class Mapper {
mapped.userId = bank.userId mapped.userId = bank.userId
mapped.iconUrl = bank.iconUrl mapped.iconUrl = bank.iconUrl
mapped.savePassword = bank.savePassword
mapped.userSetDisplayName = bank.userSetDisplayName mapped.userSetDisplayName = bank.userSetDisplayName
mapped.displayIndex = bank.displayIndex mapped.displayIndex = bank.displayIndex
@ -61,7 +61,7 @@ class Mapper {
mapped.haveAllTransactionsBeenRetrieved = account.haveAllTransactionsBeenRetrieved mapped.haveAllTransactionsBeenRetrieved = account.haveAllTransactionsBeenRetrieved
mapped.isAccountTypeSupportedByApplication = account.isAccountTypeSupportedByApplication mapped.isAccountTypeSupportedByApplication = account.isAccountTypeSupportedByApplication
mapped.countDaysForWhichTransactionsAreKept = mapToInt(account.countDaysForWhichTransactionsAreKept) mapped.countDaysForWhichTransactionsAreKept = map(account.countDaysForWhichTransactionsAreKept)
mapped.userSetDisplayName = account.userSetDisplayName mapped.userSetDisplayName = account.userSetDisplayName
mapped.displayIndex = account.displayIndex mapped.displayIndex = account.displayIndex
@ -103,7 +103,7 @@ class Mapper {
mapped.haveAllTransactionsBeenRetrieved = account.haveAllTransactionsBeenRetrieved mapped.haveAllTransactionsBeenRetrieved = account.haveAllTransactionsBeenRetrieved
mapped.isAccountTypeSupportedByApplication = account.isAccountTypeSupportedByApplication mapped.isAccountTypeSupportedByApplication = account.isAccountTypeSupportedByApplication
mapped.countDaysForWhichTransactionsAreKept = mapFromInt(account.countDaysForWhichTransactionsAreKept) mapped.countDaysForWhichTransactionsAreKept = map(account.countDaysForWhichTransactionsAreKept)!
mapped.userSetDisplayName = account.userSetDisplayName mapped.userSetDisplayName = account.userSetDisplayName
mapped.displayIndex = account.displayIndex mapped.displayIndex = account.displayIndex