BankingClient/fints4javaBankingClient/src/main/kotlin/net/dankito/banking/fints4javaBankingClientCrea...

31 lines
1.0 KiB
Kotlin

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
import java.io.File
open class fints4javaBankingClientCreator : IBankingClientCreator {
override fun createClient(
bankInfo: BankInfo,
customerId: String,
pin: String,
dataFolder: File,
webClient: IWebClient,
base64Service: IBase64Service,
threadPool: IThreadPool,
callback: BankingClientCallback
): IBankingClient {
return fints4javaBankingClient(bankInfo, customerId, pin, dataFolder, OkHttpWebClient(), UiCommonBase64ServiceWrapper(base64Service), threadPool, callback)
}
}