Forgot to commit MessageLogEntry

This commit is contained in:
dankito 2024-08-27 23:20:32 +02:00
parent 748b4cf98d
commit 07926ef0c1
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package net.codinux.banking.client.model
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
open class MessageLogEntry(
open val type: MessageLogEntryType,
open val message: String,
open val messageTrace: String? = null,
open val error: Throwable? = null,
open val time: Instant = Clock.System.now()
)

View File

@ -0,0 +1,9 @@
package net.codinux.banking.client.model
enum class MessageLogEntryType {
Sent,
Received,
Error
}