InAppThread
Represents an in-app thread.
Represents an in-app thread.
Properties
| Properties | Type | Description |
|---|---|---|
| id | String | Unique identifier for the thread. |
| title | String | The title of the thread. |
| type | InAppThreadType | The type of the thread. |
| category | String | The category of the thread. |
| externalId | String | The external identifier of the thread. |
| extras | JSONObject | The extra data associated with the thread. |
| unreadMessageCount | Int | The number of unread messages in the thread. |
| status | InAppThreadStatus | The status of the thread. |
| reasonForStatusChange | String | The reason for the status change of the thread. |
| createdAt | Date | The date and time when the thread was created. |
| updatedAt | Date | The date and time when the thread was last updated. |
| lastMessage | InAppMessage | The 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. |
| lastMessagePreview | String | Preview 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
| Parameters | Type | Description |
|---|---|---|
| jsonObject | JSONObject | The JSONObject to convert. |
Updated about 1 month ago
