Package com.whatsapp.api.domain.messages
Class MediaMessage<T extends MediaMessage<T>>
java.lang.Object
com.whatsapp.api.domain.messages.MediaMessage<T>
- Type Parameters:
T
- the type parameter
- Direct Known Subclasses:
AudioMessage
,DocumentMessage
,ImageMessage
,StickerMessage
,VideoMessage
The type Media message.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MediaMessage
public MediaMessage()
-
-
Method Details
-
getId
Gets id.- Returns:
- the id
-
setId
Sets id.- Parameters:
id
- Required when type is audio, document, image, sticker, or video and you are not using a link.- Returns:
- the id
-
getLink
Gets link.- Returns:
- the link
-
setLink
Sets link.- Parameters:
link
- Required when type is audio, document, image, sticker, or video and you are not using an uploaded media ID (i.e. you are hosting the media asset on your public server). The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs.- Returns:
- the link
-