ConversationEntry

Represents a single entry within a conversation, such as a message, event, or typing indicator.

Conversation entries are the fundamental building blocks of a conversation's timeline. Each entry has a sender, a payload containing the entry content, and a delivery status.

Inheritors

Properties

Link copied to clipboard
abstract val conversationId: UUID

The unique identifier of the conversation this entry belongs to.

Link copied to clipboard
abstract val entryId: String

The server-assigned identifier for this entry. May differ from identifier for locally-created entries.

Link copied to clipboard

The type of this entry (e.g., message, typing indicator, participant event).

Link copied to clipboard
abstract val error: NetworkError?

The error associated with this entry if status is ConversationEntryStatus.Error, or null otherwise.

Link copied to clipboard
abstract val identifier: String

A unique identifier for this entry, used for deduplication and reference.

Link copied to clipboard

The Message payload of this entry, or null if the entry is not a message type.

Link copied to clipboard
abstract val modality: Modality?

The communication modality in which this entry was sent (e.g., messaging, voice), or null if not applicable.

Link copied to clipboard
abstract val payload: EntryPayload

The content payload of this entry, containing the message body, event data, or other typed content.

Link copied to clipboard
abstract val sender: Participant

The participant who sent this entry.

Link copied to clipboard

The display name of the participant who sent this entry.

Link copied to clipboard

The current delivery status of this entry (e.g., sending, sent, delivered, read).

Link copied to clipboard

The StreamingToken payload of this entry, or null if the entry is not a streaming token type.

Link copied to clipboard
abstract val timestamp: Long

The time this entry was created, in milliseconds since the epoch.

Functions

Link copied to clipboard

Returns the message content cast to the specified MessageFormat subtype, or null if the entry does not contain message content of that type. Works for both standard messages and streaming tokens.