InAppAudioAttachment
Represents an audio attachment
Represents an audio attachment and inherits from InAppFileAttachment.
Properties
Properties | Type | Description |
---|---|---|
id | String | The id of the attachment. |
size | Long | The size of the attachment. |
url | URL | The URL of the attachment. |
duration | Long | The duration of the audio is in milliseconds. |
contentType | String | The content type of the attachment. |
Functions
toJson
Converts the audio attachment to a JSONObject.
Syntax: fun toJson(): JSONObject
Return: The JSONObject converted from the audio attachment.
Companion Functions
fromJson
Converts a JSONObject to an audio attachment.
Syntax: fun fromJson(jsonObject: JSONObject): InAppThread
Return: The audio attachment converted from the JSONObject.
Parameters
Parameter | Type | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Updated about 1 month ago