InAppThread

Represents an in-app thread.

Represents an in-app thread.

Properties

PropertiesTypeDescription
idStringUnique identifier for the thread.
titleStringThe title of the thread.
typeInAppThreadTypeThe type of the thread.
categoryStringThe category of the thread.
externalIdStringThe external identifier of the thread.
extrasJSONObjectThe extra data associated with the thread.
unreadMessageCountIntThe number of unread messages in the thread.
statusInAppThreadStatusThe status of the thread.
reasonForStatusChangeStringThe reason for the status change of the thread.
createdAtDateThe date and time when the thread was created.
updatedAtDateThe date and time when the thread was last updated.
lastMessageInAppMessageThe last message in the thread. If available, this is the most recent message in the thread. If not available, this is null. This will be available only for Cisco Webex Contact Center or Cisco Contact Center Enterprise (CCE)-registered assets.
lastMessagePreviewStringPreview text for the latest message in the thread. If available, this is a preview of the most recent message in the thread. If not available, this is null. This will be available only for Cisco Webex Contact Center or Cisco Contact Center Enterprise (CCE)-registered assets.

Functions

toJson

Converts the thread to a JSONObject.

Syntax: fun toJson(): JSONObject

Returns: The JSONObject representing the thread.

Companion Functions

fromJson

Converts a JSONObject to an thread.

Syntax: fun fromJson(jsonObject: JSONObject): InAppThread

Returns: The thread converted from the JSONObject.

Parameters

ParametersTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.