From 7448b7e94c1323689f10f0a3443c10f807903979 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 16 Oct 2024 15:10:53 +0200 Subject: [PATCH] Added NonVisualOrImageBasedOrFlickerCode for applications supporting FlickerCode --- .../codinux/banking/client/model/tan/TanMethodType.kt | 9 +++++++++ 1 file changed, 9 insertions(+) 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 24abe46e..f1b7ffae 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 @@ -45,6 +45,15 @@ enum class TanMethodType { addAll(listOf(TanMethodType.ChipTanManual)) // this is quite inconvenient for user, so i added it as last } + /** + * The same as [NonVisualOrImageBased] but including [ChipTanFlickerCode] - for applications supporting it - as + * FlickerCode is still the most used ChipTan procedure. + */ + val NonVisualOrImageBasedOrFlickerCode = NonVisualOrImageBased.toMutableList().apply { + val index = this.indexOf(ChipTanQrCode) + this.add(index, ChipTanFlickerCode) + }.toList() + val TanMethodsNotSupportedByMostApplications = listOf(TanMethodType.ChipTanUsb) }