Little refactoring
This commit is contained in:
parent
b94c5d5cf5
commit
9854ac000e
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue