From 051fc9a3e97dcfd1a1c0e16979e845e507dccf3d Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 14 Jul 2020 17:46:12 +0200 Subject: [PATCH] Removed platform specific GetTransactionsParameter --- .../kotlin/FinTsClientForCustomerSwift.kt | 7 +------ .../iosMain/kotlin/GetTransactionsParameter.kt | 16 ---------------- 2 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 fints4k/src/iosMain/kotlin/GetTransactionsParameter.kt diff --git a/fints4k/src/iosMain/kotlin/FinTsClientForCustomerSwift.kt b/fints4k/src/iosMain/kotlin/FinTsClientForCustomerSwift.kt index b1a9e1fa..8c4e75a3 100644 --- a/fints4k/src/iosMain/kotlin/FinTsClientForCustomerSwift.kt +++ b/fints4k/src/iosMain/kotlin/FinTsClientForCustomerSwift.kt @@ -86,12 +86,7 @@ open class FinTsClientForCustomerSwift( arg.customer.selectedLanguage, arg.customer.customerSystemId, arg.customer.customerSystemStatus ) - val parameter = net.dankito.banking.fints.model.GetTransactionsParameter( - arg.parameter.alsoRetrieveBalance, arg.parameter.fromDate.toDate(), arg.parameter.toDate.toDate(), - arg.parameter.maxCountEntries, arg.parameter.abortIfTanIsRequired, arg.parameter.retrievedChunkListener - ) - - val response = client.getTransactions(parameter, bank, customer, arg.account) // TODO: map account + val response = client.getTransactions(arg.parameter, bank, customer, arg.account) // TODO: map account FinTsClientWorkerResult(bank.freeze(), customer.freeze(), response.freeze()) } diff --git a/fints4k/src/iosMain/kotlin/GetTransactionsParameter.kt b/fints4k/src/iosMain/kotlin/GetTransactionsParameter.kt deleted file mode 100644 index db72da47..00000000 --- a/fints4k/src/iosMain/kotlin/GetTransactionsParameter.kt +++ /dev/null @@ -1,16 +0,0 @@ -import net.dankito.banking.fints.model.AccountTransaction -import platform.Foundation.NSDate - - -class GetTransactionsParameter( - val alsoRetrieveBalance: Boolean = true, - val fromDate: NSDate? = null, - val toDate: NSDate? = null, - val maxCountEntries: Int? = null, - val abortIfTanIsRequired: Boolean = false, - val retrievedChunkListener: ((List) -> Unit)? = null -) { - - constructor() : this(true, null, null, null, false, null) - -} \ No newline at end of file