CoreConversationEntry

data class CoreConversationEntry(val senderDisplayName: String, val conversationId: UUID, val sender: Participant, val payload: EntryPayload, val entryType: ConversationEntryType, val identifier: String, val transcriptedTimestamp: Long? = null, val timestamp: Long = transcriptedTimestamp ?: Date().time, val status: ConversationEntryStatus = ConversationEntryStatus.Sending, val error: NetworkError? = null, val modality: Modality? = null) : ConversationEntry

Conversation entry class.

See also

Constructors

Link copied to clipboard
constructor(senderDisplayName: String, conversationId: UUID, sender: Participant, payload: EntryPayload, entryType: ConversationEntryType, identifier: String, transcriptedTimestamp: Long? = null, timestamp: Long = transcriptedTimestamp ?: Date().time, status: ConversationEntryStatus = ConversationEntryStatus.Sending, error: NetworkError? = null, modality: Modality? = null)
constructor(conversationEntry: ConversationEntry)

Properties

Link copied to clipboard
open override val conversationId: UUID

The unique identifier of the conversation this entry belongs to.

Link copied to clipboard
open override val entryId: String

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

Link copied to clipboard
open override val entryType: ConversationEntryType

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

Link copied to clipboard
open override val error: NetworkError?

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

Link copied to clipboard
open override 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
open override 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
open override val payload: EntryPayload

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

Link copied to clipboard
open override val sender: Participant

The participant who sent this entry.

Link copied to clipboard
open override val senderDisplayName: String

The display name of the participant who sent this entry.

Link copied to clipboard
open override val status: ConversationEntryStatus

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
open override val timestamp: Long

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

Link copied to clipboard

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.