Model

data class Model<T : Any>(val id: ModelID<T>, val createdAt: Instant, val lastPropsUpdateAt: Instant, val lastStateTransitionAt: Instant, val state: String, val timeTrigger: Instant?, val props: T)

Constructors

Link copied to clipboard
constructor(id: ModelID<T>, createdAt: Instant, lastPropsUpdateAt: Instant, lastStateTransitionAt: Instant, state: String, timeTrigger: Instant?, props: T)

Properties

Link copied to clipboard
val createdAt: Instant
Link copied to clipboard
val id: ModelID<T>
Link copied to clipboard
val lastModifiedAt: Instant

The time when this model was last modified, either by a state transition or updating properties.

Link copied to clipboard
val lastPropsUpdateAt: Instant
Link copied to clipboard
Link copied to clipboard
val props: T
Link copied to clipboard
Link copied to clipboard
val timeTrigger: Instant?

Functions

Link copied to clipboard
open override fun toString(): String