From bfc0e7c5638cc7b0c6e477915ee2bacfac2849df Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 18 Aug 2024 04:03:03 +0200 Subject: [PATCH] Added JobContextType.GetAccountInfo --- .../kotlin/net/dankito/banking/fints/FinTsClient.kt | 2 +- .../kotlin/net/dankito/banking/fints/model/JobContextType.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index 71dcc2b1..26437547 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -177,7 +177,7 @@ open class FinTsClient @JvmOverloads constructor( // return GetAccountInfoResponse(it) } - val context = JobContext(JobContextType.AddAccount, this.callback, product, bank) // TODO: add / change JobContextType + val context = JobContext(JobContextType.GetAccountInfo, this.callback, product, bank) /* First dialog: Get user's basic data like BPD, customer system ID and her TAN methods */ diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContextType.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContextType.kt index e54f02a3..83ed05f6 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContextType.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/JobContextType.kt @@ -9,7 +9,9 @@ enum class JobContextType { ChangeTanMedium, - AddAccount, + GetAccountInfo, + + AddAccount, // TODO: may split actions and create two JobContexts, one for GetAccountInfo and one for GetTransactions GetTransactions,