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.

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.