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. |
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 8 days ago