InAppQuickReply
Represents a quick reply in an in-app message.
It represents a quick reply in an in-app message.
Properties
Properties | Type | Description |
---|---|---|
reference | String | Reference in the quick reply.val reference: String? |
buttons | ArrayList | Buttons in the quick reply.val buttons: ArrayList<InAppButton> |
Functions
toJson
Converts the quick reply to a JSON object.
Syntax: fun toJson(): JSONObject
Return: The JSON object representing the quick reply.
Companion Functions
fromJson
Converts a JSONObject to quick reply data.
Syntax: fun fromJson(jsonObject: JSONObject): InAppThread
Return: The quick reply data converted from the JSONObject.
Parameters
Parameters | Type | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Syntax: class InAppQuickReply : JsonSerializable
Constructors
Public Constructors | Description |
---|---|
InAppQuickReply | constructor() |
Types
Types | Description |
---|---|
Companion | Companion object for the InAppQuickReply class.object Companion : JsonDeserializable<InAppQuickReply> |
Return Type | Method |
---|---|
Json Object | fun fromJson() |
fun fromJson
Converts a JSONObject to an quick reply data.
Syntax: open override fun fromJson(jsonObject: JSONObject): InAppQuickReply
Properties
Properties | Description |
---|---|
buttons | Buttons in the quick reply.val buttons: ArrayList<InAppButton> |
reference | Reference in the quick reply.val reference: String? |
Return Type | Method |
---|---|
JSONObject | fun toJson() |
fun toJson
Syntax: open override fun toJson(): JSONObject
Updated 8 days ago