From bc7733f618590405cfef8bbd96cb6d1ebeb6f964 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 18 Apr 2021 20:12:18 +0200 Subject: [PATCH] Implemented toString() --- .../net/dankito/banking/fints/model/RetrievedAccountData.kt | 5 +++++ .../banking/fints/response/client/GetTransactionsResponse.kt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt index 17576284..b80859af 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/model/RetrievedAccountData.kt @@ -30,4 +30,9 @@ open class RetrievedAccountData( } + + override fun toString(): String { + return "Was retrieving AccountData for ${account.accountIdentifier} successful? $successfullyRetrievedData. Balance = ${balance}, ${bookedTransactions.size} transactions" + } + } \ No newline at end of file diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt index 6404fef5..a18e8c4e 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/response/client/GetTransactionsResponse.kt @@ -23,4 +23,9 @@ open class GetTransactionsResponse( get() = super.errorMessage ?: retrievedData.mapNotNull { it.errorMessage }.firstOrNull() + + override fun toString(): String { + return super.toString() + ": Retrieved data: $retrievedData" + } + } \ No newline at end of file