Message

data class Message(val id: String?, val correlId: String, val channelId: String, val username: String, val content: String, val timestamp: String, val messageSender: MessageSender, val isFromLocalCache: Boolean, val isFailed: Boolean)

Represents a message in a chat conversation.

Constructors

Link copied to clipboard
constructor(id: String?, correlId: String, channelId: String, username: String, content: String, timestamp: String, messageSender: MessageSender, isFromLocalCache: Boolean, isFailed: Boolean)

Types

Link copied to clipboard
object Companion

Companion object for Message utilities.

Properties

Link copied to clipboard

The ID of the channel this message belongs to.

Link copied to clipboard

The actual text content of the message.

Link copied to clipboard

Correlation ID for tracking the message across systems.

Link copied to clipboard
val id: String?

Unique identifier for the message. Null if the message has been sent locally but not yet uploaded.

Link copied to clipboard

Indicates whether sending this message failed.

Link copied to clipboard

Indicates whether this message is from local cache.

Link copied to clipboard

The type of sender (CUSTOMER, USER, or SITE).

Link copied to clipboard

The time when the message was sent.

Link copied to clipboard

The name of the user who sent the message.