toggle menu
lib
0.0.266
jvm
switch theme
search in API
lib
/
com.prettybyte.klerk
/
Model
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
)
Members
Constructors
Model
Link copied to clipboard
constructor
(
id
:
ModelID
<
T
>
,
createdAt
:
Instant
,
lastPropsUpdateAt
:
Instant
,
lastStateTransitionAt
:
Instant
,
state
:
String
,
timeTrigger
:
Instant
?
,
props
:
T
)
Properties
created
At
Link copied to clipboard
val
createdAt
:
Instant
id
Link copied to clipboard
val
id
:
ModelID
<
T
>
last
Modified
At
Link copied to clipboard
val
lastModifiedAt
:
Instant
The time when this model was last modified, either by a state transition or updating properties.
last
Props
Update
At
Link copied to clipboard
val
lastPropsUpdateAt
:
Instant
last
State
Transition
At
Link copied to clipboard
val
lastStateTransitionAt
:
Instant
props
Link copied to clipboard
val
props
:
T
state
Link copied to clipboard
val
state
:
String
time
Trigger
Link copied to clipboard
val
timeTrigger
:
Instant
?
Functions
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String