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

CLOSED
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.

INACTIVE
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.

ACTIVE
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).

UNDEFINED
Link copied to clipboard

Conversation state is unknown.

Functions

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

Properties

value
Link copied to clipboard
private val value: Int