Class MessagePayload
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.internal.MessagePayload
- All Implemented Interfaces:
Jsonable
- Direct Known Subclasses:
Video
Container object for audio, video, image and file message payload contents.
This class also validates the fields.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessagePayload(String url) MessagePayload(String url, String caption) MessagePayload(String url, String caption, String name) -
Method Summary
Modifier and TypeMethodDescriptiongetName()getUrl()voidvalidateCaptionLength(int max) static voidvalidateExtension(String path, String... allowed) voidvalidateUrlExtension(String... allowed) voidvalidateUrlLength(int min, int max) 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
-
Field Details
-
url
-
caption
-
name
-
-
Constructor Details
-
MessagePayload
-
MessagePayload
-
MessagePayload
-
-
Method Details
-
getUrl
-
getCaption
-
getName
-
validateExtension
-
validateUrlExtension
-
validateCaptionLength
-
validateUrlLength
-