From ce39c1cf7d616c8c36293101932356cfbda8c6fc Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 16 Oct 2024 14:48:46 +0200 Subject: [PATCH] Extracted NonVisualWithoutChipTanManuell --- .../net/codinux/banking/client/model/tan/TanMethodType.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt index b75893ef..d7fd4dc8 100644 --- a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/tan/TanMethodType.kt @@ -35,10 +35,12 @@ enum class TanMethodType { val NonVisual = listOf(TanMethodType.DecoupledTan, TanMethodType.DecoupledPushTan, TanMethodType.AppTan, TanMethodType.SmsTan, TanMethodType.ChipTanManuell, TanMethodType.EnterTan) + val NonVisualWithoutChipTanManuell = NonVisual.toMutableList().apply { remove(TanMethodType.ChipTanManuell) }.toList() + val ImageBased = listOf(TanMethodType.QrCode, TanMethodType.ChipTanQrCode, TanMethodType.photoTan, TanMethodType.ChipTanPhotoTanMatrixCode) val NonVisualOrImageBased = buildList { - addAll(listOf(TanMethodType.DecoupledTan, TanMethodType.DecoupledPushTan, TanMethodType.AppTan, TanMethodType.SmsTan, TanMethodType.EnterTan)) + addAll(NonVisualWithoutChipTanManuell) addAll(ImageBased) addAll(listOf(TanMethodType.ChipTanManuell)) // this is quite inconvenient for user, so i added it as last }