TimelineItem

@Serializable(with = TimelineItemSerializer::class)
sealed class TimelineItem

One row of a conversation: a MessageDto or a ConversationEventDto.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val conversationId: String

The conversation this row belongs to.

Link copied to clipboard
abstract val createdAt: Instant

When it was created.

Link copied to clipboard
abstract val id: String

Unique id.

Link copied to clipboard

Rows the SDK made up locally (showLocalMessage, notices); never persisted.

Link copied to clipboard
abstract val kind: String

message or event.

Link copied to clipboard
abstract val seq: Int

Position in the conversation (monotonic).

Functions

Link copied to clipboard
fun toJson(): JsonObject

The wire shape, including kind.