Little refactoring

This commit is contained in:
dankito 2020-09-24 03:18:22 +02:00
parent b94c5d5cf5
commit 9854ac000e
1 changed files with 4 additions and 4 deletions

View File

@ -25,16 +25,16 @@ open class AccountData(
internal constructor() : this("", null, Laenderkennzeichen.Germany, "", null, "", null, null, "", null, null, listOf()) // for object deserializers 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<AccountFeature>() protected open val _supportedFeatures = mutableSetOf<AccountFeature>()
open val supportedFeatures: Collection<AccountFeature> open val supportedFeatures: Collection<AccountFeature>
get() = ArrayList(_supportedFeatures) // make a copy, don't pass original (and mutable) _supportedFeatures Set to outside 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 open val supportsRetrievingBalance: Boolean
get() = supportsFeature(AccountFeature.RetrieveBalance) get() = supportsFeature(AccountFeature.RetrieveBalance)