public class AudioMessage extends MessageData
MessageSendRequest object.| Constructor and Description |
|---|
AudioMessage(java.lang.String originalContentUrl,
java.lang.Long durationMillis)
Constructs an
AudioMessage object. |
| Modifier and Type | Method and Description |
|---|---|
Type |
getType() |
org.json.JSONObject |
toJsonObject() |
public AudioMessage(java.lang.String originalContentUrl,
java.lang.Long durationMillis)
AudioMessage object.originalContentUrl - Required. The URL of the audio file.durationMillis - Required. The length of the audio file in milliseconds.public Type getType()
getType in class MessageDatapublic org.json.JSONObject toJsonObject()
throws org.json.JSONException
toJsonObject in interface JsonabletoJsonObject in class MessageDataorg.json.JSONException