Introducing chat
The meeting chat object is stored in meeting.chat
, which has methods for sending and receiving messages. There are 3 types of messages that can be sent in chat - text messages, images, and files.
The meeting.chat.messages
array contains all the messages that have been sent
in the chat. This is an array of objects, where each object is of type
DyteChatMessage
.
We support three types of chat messages, they are as follows
- Text Message
class DyteTextMessage(
userId: String,
displayName: String,
read: Boolean,
pluginId: String?,
val message: String,
time: String,
channelId: String? = null,
)
- Image Message
class DyteImageMessage(
userId: String,
displayName: String,
read: Boolean,
pluginId: String?,
val link: String,
time: String,
channelId: String? = null,
)
- File Message
class DyteFileMessage(
userId: String,
displayName: String,
read: Boolean,
pluginId: String?,
val name: String,
time: String,
val link: String,
val size: Long,
channelId: String? = null,
)
All above objects are of type DyteChatMessage
along with their own class
variables.