Forgot to commit MessageLogEntry
This commit is contained in:
parent
748b4cf98d
commit
07926ef0c1
|
@ -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()
|
||||
)
|
|
@ -0,0 +1,9 @@
|
|||
package net.codinux.banking.client.model
|
||||
|
||||
enum class MessageLogEntryType {
|
||||
Sent,
|
||||
|
||||
Received,
|
||||
|
||||
Error
|
||||
}
|
Loading…
Reference in New Issue