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() |
org.json.JSONObject |
toJsonObject() |
public TemplateMessage(java.lang.String altText,
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.public Type getType()
getType in class MessageDatapublic org.json.JSONObject toJsonObject()
throws org.json.JSONException
toJsonObject in interface JsonabletoJsonObject in class MessageDataorg.json.JSONException