of

fun of(sender: User, receiver: User, content: String): Message

Creates a message.

Return

the message

Parameters

sender

the sender of the message

receiver

the receiver of the message

content

the content of the message


fun of(messageId: UUID, sender: User, receiver: User, content: String): Message

Creates a message.

Return

the message

Parameters

messageId

the message ID

sender

the sender of the message

receiver

the receiver of the message

content

the content of the message