ChatMessage

data class ChatMessage(    val id: String,     val sender: ChatUser,     val content: String,     val sendTime: Date,     val requestId: String? = null,     val attributes: Map<String, String>? = null)

Represents a chat message sent by clients to the room.

Constructors

Link copied to clipboard
fun ChatMessage(    id: String,     sender: ChatUser,     content: String,     sendTime: Date,     requestId: String? = null,     attributes: Map<String, String>? = null)

Properties

Link copied to clipboard
val attributes: Map<String, String>? = null

Key-value object for any additional data

Link copied to clipboard
val content: String

Text content of a message

Link copied to clipboard
val id: String

Server-generated unique identifier of a message

Link copied to clipboard
val requestId: String? = null

Client-generated identifier of the request that triggered the message

Link copied to clipboard
val sender: ChatUser

Object that describes the sender ChatUser of the message

Link copied to clipboard
val sendTime: Date

Date and time when event has been sent