30 lines
No EOL
740 B
Kotlin
30 lines
No EOL
740 B
Kotlin
package net.dankito.fints.model
|
|
|
|
import net.dankito.fints.messages.MessageBuilderResult
|
|
import net.dankito.fints.response.Response
|
|
|
|
|
|
open class DialogContext(
|
|
bank: BankData,
|
|
customer: CustomerData,
|
|
product: ProductData,
|
|
var currentMessage: MessageBuilderResult? = null,
|
|
var dialogId: String = InitialDialogId,
|
|
var response: Response? = null,
|
|
var previousMessageInDialog: MessageBuilderResult? = null
|
|
) : MessageBaseData(bank, customer, product) {
|
|
|
|
companion object {
|
|
const val InitialDialogId = "0"
|
|
|
|
const val InitialMessageNumber = 0
|
|
}
|
|
|
|
open var messageNumber: Int = InitialMessageNumber
|
|
protected set
|
|
|
|
open fun increaseMessageNumber() {
|
|
messageNumber++
|
|
}
|
|
|
|
} |