InAppQuickReply

Represents a quick reply in an in-app message.

It represents a quick reply in an in-app message.

Properties

PropertiesTypeDescription
referenceStringReference in the quick reply.
val reference: String?
buttonsArrayListButtons 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

ParametersTypeDescription
jsonObjectJSONObjectThe JSONObject to convert.

Syntax: class InAppQuickReply : JsonSerializable

Constructors

Public ConstructorsDescription
InAppQuickReplyconstructor()

Types

TypesDescription
CompanionCompanion object for the InAppQuickReply class.
object Companion : JsonDeserializable<InAppQuickReply>
Return TypeMethod
Json Objectfun fromJson()

fun fromJson

Converts a JSONObject to an quick reply data.

Syntax: open override fun fromJson(jsonObject: JSONObject): InAppQuickReply

Properties

PropertiesDescription
buttonsButtons in the quick reply.
val buttons: ArrayList<InAppButton>
referenceReference in the quick reply.
val reference: String?
Return TypeMethod
JSONObjectfun toJson()

fun toJson

Syntax: open override fun toJson(): JSONObject