diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/MessageLogEntry.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/MessageLogEntry.kt new file mode 100644 index 00000000..d8eebe08 --- /dev/null +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/MessageLogEntry.kt @@ -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() +) \ No newline at end of file diff --git a/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/MessageLogEntryType.kt b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/MessageLogEntryType.kt new file mode 100644 index 00000000..eaa77080 --- /dev/null +++ b/BankingClientModel/src/commonMain/kotlin/net/codinux/banking/client/model/MessageLogEntryType.kt @@ -0,0 +1,9 @@ +package net.codinux.banking.client.model + +enum class MessageLogEntryType { + Sent, + + Received, + + Error +} \ No newline at end of file