Added option closeDialogs

This commit is contained in:
dankito 2024-09-09 17:06:29 +02:00
parent 9372d17313
commit fbafbb62e3
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,9 @@ data class FinTsClientOptions(
* Defaults to true.
*/
val removeSensitiveDataFromMessageLog: Boolean = true,
val closeDialogs: Boolean = true,
val version: String = "1.0.0", // TODO: get version dynamically
val productName: String = "15E53C26816138699C7B6A3E8"
) {

View File

@ -55,7 +55,7 @@ open class JobContext(
protected open var dialogNumber: Int = 0
open fun startNewDialog(closeDialog: Boolean = true, dialogId: String = DialogContext.InitialDialogId,
open fun startNewDialog(closeDialog: Boolean = config.options.closeDialogs, dialogId: String = DialogContext.InitialDialogId,
versionOfSecurityProcedure: VersionDesSicherheitsverfahrens = VersionDesSicherheitsverfahrens.Version_2,
chunkedResponseHandler: ((BankResponse) -> Unit)? = dialog.chunkedResponseHandler) : DialogContext {