public class TemplateMessage extends MessageData
MessageSendRequest object.| Constructor and Description |
|---|
TemplateMessage(java.lang.String altText,
LayoutTemplate template)
Constructs a
TemplateMessage object. |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType() |
JSONObject |
toJsonObject() |
public TemplateMessage(@NonNull
java.lang.String altText,
@NonNull
LayoutTemplate template)
TemplateMessage object.altText - Required. The alternative text to be shown when the user device doesn't
support template messages.template - Required. The template message.@NonNull public Type getType()
getType in class MessageData@NonNull
public JSONObject toJsonObject()
throws JSONException
toJsonObject in interface JsonabletoJsonObject in class MessageDataJSONException