ConversationEventDto

@Serializable
data class ConversationEventDto(val id: String = "", val conversationId: String = "", val seq: Int = 0, val type: String = "", val createdAt: Instant = Instant.EPOCH, val actorType: SenderType = SenderType.SYSTEM, val actorId: String? = null, val data: JsonObject = EmptyJsonObject) : TimelineItem

Something that happened in a conversation (status change, handoff, notice, ...).

Constructors

Link copied to clipboard
constructor(id: String = "", conversationId: String = "", seq: Int = 0, type: String = "", createdAt: Instant = Instant.EPOCH, actorType: SenderType = SenderType.SYSTEM, actorId: String? = null, data: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
@SerialName(value = "actor_id")
val actorId: String? = null

The actor's id.

Link copied to clipboard
@SerialName(value = "actor_type")
val actorType: SenderType

Who caused it.

Link copied to clipboard
@SerialName(value = "conversation_id")
open override val conversationId: String

The conversation this row belongs to.

Link copied to clipboard
@Serializable(with = InstantOrEpochSerializer::class)
@SerialName(value = "created_at")
open override val createdAt: Instant

When it was created.

Link copied to clipboard
@Serializable(with = LenientObjectSerializer::class)
val data: JsonObject

Event payload.

Link copied to clipboard
open override val id: String

Unique id.

Link copied to clipboard

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

Link copied to clipboard
open override val kind: String

message or event.

Link copied to clipboard
open override val seq: Int = 0

Position in the conversation (monotonic).

Link copied to clipboard

Event type (status_changed, handoff, notice, rated, ...).

Functions

Link copied to clipboard
fun toJson(): JsonObject

The wire shape, including kind.