From f444a4573015e1c781f96c8d161ff3baf002c63e Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 19 Sep 2020 02:54:09 +0200 Subject: [PATCH] Derived AddAccountResponse from GetTransactionsResponse --- .../dankito/banking/ui/model/responses/AddAccountResponse.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/responses/AddAccountResponse.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/responses/AddAccountResponse.kt index fed27dfc..44dffa28 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/responses/AddAccountResponse.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/model/responses/AddAccountResponse.kt @@ -8,9 +8,9 @@ open class AddAccountResponse( isSuccessful: Boolean, errorToShowToUser: String?, open val customer: TypedCustomer, - open val retrievedData: List = listOf(), + retrievedData: List = listOf(), userCancelledAction: Boolean = false -) : BankingClientResponse(isSuccessful, errorToShowToUser, userCancelledAction) { +) : GetTransactionsResponse(isSuccessful, errorToShowToUser, retrievedData, userCancelledAction) { open val supportsRetrievingTransactionsOfLast90DaysWithoutTan: Boolean get() = retrievedData.isNotEmpty() && retrievedData.any { it.successfullyRetrievedData }