pda
jvm
model
/
net.artux.pda.model.chat
/
UserMessage
User
Message
data
class
UserMessage
(
var
id
:
UUID
,
var
type
:
UserMessage.Type
,
var
content
:
String
,
var
timestamp
:
Instant
)
:
Serializable
Members
Constructors
User
Message
Link copied to clipboard
constructor
(
userModel
:
UserModel
,
message
:
String
)
constructor
(
storyDataModel
:
StoryDataModel
,
message
:
String
)
constructor
(
senderLogin
:
String
?
,
message
:
String
,
avatarId
:
String
?
)
constructor
(
id
:
UUID
,
type
:
UserMessage.Type
,
content
:
String
,
timestamp
:
Instant
)
Types
Companion
Link copied to clipboard
object
Companion
Type
Link copied to clipboard
enum
Type
:
Enum
<
UserMessage.Type
>
Properties
author
Link copied to clipboard
lateinit
var
author
:
UserModel
content
Link copied to clipboard
var
content
:
String
id
Link copied to clipboard
var
id
:
UUID
timestamp
Link copied to clipboard
var
timestamp
:
Instant
type
Link copied to clipboard
var
type
:
UserMessage.Type