ConversationState

enum ConversationState

Represents the various states of the conversation. States of the conversation could change in the following sequence: ACTIVE <-> INACTIVE -> CLOSED with timers (automatically flip to "inactive" after some period of inactivity), triggers (new message, new participant -- flip to "active" back on activity), or API call.

Entries

Link copied to clipboard

Conversation state is unknown.

Link copied to clipboard

Conversation state is active, i.e. some events have happened in the conversation recently (new message received, new participant added etc).

Link copied to clipboard

Conversation state is inactive, i.e. no new events have happened in the conversation recently (new message received, new participant added etc). So the conversation has been moved to inactive state by timeout.

Link copied to clipboard

When conversation moves to CLOSED state SDKs receives update that the user left given conversation. So SDKs will not receive any updates on it in the future. Any operations with closed conversation are not permitted.

Functions

Link copied to clipboard
open fun fromInt(value: Int): Conversation.ConversationState
Link copied to clipboard
open fun valueOf(name: String): Conversation.ConversationState
Link copied to clipboard
open fun values(): Array<Conversation.ConversationState>

Properties

Link copied to clipboard
val value: Int