From 0efb4ba708dd50afaa246ef07947c7922928b5c1 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 22 Sep 2020 06:17:35 +0200 Subject: [PATCH] Made supportedFeatures accessible --- .../kotlin/net/dankito/banking/fints/model/AccountData.kt | 3 +++ 1 file changed, 3 insertions(+) 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 c0d24dd4..3e16443a 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 @@ -27,6 +27,9 @@ open class AccountData( 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)