Package com.vonage.client.messages.mms
Class Content
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.mms.Content
- All Implemented Interfaces:
Jsonable
Represents file attachments in
InboundMessage.getContent().- Since:
- 8.11.0
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Content
protected Content()
-
-
Method Details
-
getType
The type of attachment. Either MessageType.AUDIO,MessageType.VIDEO, MessageType.FILE, MessageType.IMAGE or MessageType.VCARD.- Returns:
- The attachment type, or
nullif unknown.
-
getUrl
URL of the attachment.- Returns:
- The attachment URL, or
nullif unknown.
-