From 9854ac000ecb71b9ddde6df2755e9c5beb976f49 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 24 Sep 2020 03:18:22 +0200 Subject: [PATCH] Little refactoring --- .../kotlin/net/dankito/banking/fints/model/AccountData.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt index 2fa9f981..11917277 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/AccountData.kt @@ -25,16 +25,16 @@ open class AccountData( internal constructor() : this("", null, Laenderkennzeichen.Germany, "", null, "", null, null, "", null, null, listOf()) // for object deserializers + open val isAccountTypeSupported: Boolean + get() = FinTsClient.SupportedAccountTypes.contains(accountType) + + protected open val _supportedFeatures = mutableSetOf() open val supportedFeatures: Collection get() = ArrayList(_supportedFeatures) // make a copy, don't pass original (and mutable) _supportedFeatures Set to outside - open val isAccountTypeSupported: Boolean - get() = FinTsClient.SupportedAccountTypes.contains(accountType) - - open val supportsRetrievingBalance: Boolean get() = supportsFeature(AccountFeature.RetrieveBalance)