public class ImageMessage extends MessageData
MessageSendRequest object.| Constructor and Description |
|---|
ImageMessage(java.lang.String originalContentUrl,
java.lang.String previewImageUrl)
Constructs an
ImageMessage object. |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType() |
void |
setAnimated(java.lang.Boolean animated) |
void |
setExtension(java.lang.String extension) |
void |
setFileSize(java.lang.Long fileSize) |
void |
setSentBy(MessageSender sentBy) |
org.json.JSONObject |
toJsonObject() |
public ImageMessage(java.lang.String originalContentUrl,
java.lang.String previewImageUrl)
ImageMessage object.originalContentUrl - Required. The URL of the image file.previewImageUrl - Required. The URL of the preview image file.public void setAnimated(java.lang.Boolean animated)
public void setExtension(java.lang.String extension)
public void setFileSize(java.lang.Long fileSize)
public void setSentBy(MessageSender sentBy)
public Type getType()
getType in class MessageDatapublic org.json.JSONObject toJsonObject()
throws org.json.JSONException
toJsonObject in interface JsonabletoJsonObject in class MessageDataorg.json.JSONException