Made supportedFeatures accessible

This commit is contained in:
dankito 2020-09-22 06:17:35 +02:00
parent 1ff2c0ecf3
commit 0efb4ba708
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ open class AccountData(
protected open val _supportedFeatures = mutableSetOf<AccountFeature>()
open val supportedFeatures: Collection<AccountFeature>
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)