public class FlexMessage extends MessageData
MessageSendRequest object.
To create a FlexMessage object, firstly create a container, and then pass it with the
altText parameter to the initializer.
For more information, please refer to Flex messages.| Constructor and Description |
|---|
FlexMessage(java.lang.String altText,
FlexMessageContainer contents)
Constructs a
FlexMessage object. |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType() |
org.json.JSONObject |
toJsonObject() |
public FlexMessage(java.lang.String altText,
FlexMessageContainer contents)
FlexMessage object.altText - Required. The alternative text to be shown when the user device doesn't
support Flex Messages.contents - Required. The Flex 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