2020 API AWARDS WINNER - BEST IN MEDIA APIs LEARN MORE

ChatMessage

The ChatMessage model introduces the ChatMessage constructor enabling sending messages. It contains the content of the message sent via chat, sending date, and message type.

Available in the package com.voxeet.sdk.models.v2.ChatMessage.

Constructors

ChatMessage

ChatMessage(@NonNull date: Date, @NonNull content: String, @NonNull type: ChatMessageType)

A constructor that enables sending developers' messages. A message consists of the date, the content, and the type of content formatting.

Parameters

NameTypeDescription
dateDatenon null sending date
contentStringnon null string representating the conent of the chat message
typeChatMessageTypenon null message type that formats the message

Properties

date (Date)

The date of the message.

content (String)

The message content.

type (ChatMessageType)

The message type.