2020-01-08 17:02:41 +00:00
|
|
|
package net.dankito.banking
|
|
|
|
|
|
|
|
import net.dankito.banking.ui.BankingClientCallback
|
|
|
|
import net.dankito.banking.ui.IBankingClient
|
|
|
|
import net.dankito.banking.ui.IBankingClientCreator
|
|
|
|
import net.dankito.banking.util.IBase64Service
|
|
|
|
import net.dankito.banking.util.UiCommonBase64ServiceWrapper
|
|
|
|
import net.dankito.fints.model.BankInfo
|
|
|
|
import net.dankito.utils.IThreadPool
|
|
|
|
import net.dankito.utils.web.client.IWebClient
|
|
|
|
import net.dankito.utils.web.client.OkHttpWebClient
|
2020-01-25 19:29:44 +00:00
|
|
|
import java.io.File
|
2020-01-08 17:02:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
open class fints4javaBankingClientCreator : IBankingClientCreator {
|
|
|
|
|
2020-01-25 19:29:44 +00:00
|
|
|
override fun createClient(
|
|
|
|
bankInfo: BankInfo,
|
|
|
|
customerId: String,
|
|
|
|
pin: String,
|
|
|
|
dataFolder: File,
|
|
|
|
webClient: IWebClient,
|
|
|
|
base64Service: IBase64Service,
|
|
|
|
threadPool: IThreadPool,
|
|
|
|
callback: BankingClientCallback
|
|
|
|
): IBankingClient {
|
2020-01-08 17:02:41 +00:00
|
|
|
|
2020-01-25 19:29:44 +00:00
|
|
|
return fints4javaBankingClient(bankInfo, customerId, pin, dataFolder, OkHttpWebClient(), UiCommonBase64ServiceWrapper(base64Service), threadPool, callback)
|
2020-01-08 17:02:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|