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