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

public class MediaMessage<T extends MediaMessage<T>> extends Object
The type Media message.
See Also:
  • Constructor Details

    • MediaMessage

      public MediaMessage()
  • Method Details

    • getId

      public String getId()
      Gets id.
      Returns:
      the id
    • setId

      public T setId(String id)
      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

      public String getLink()
      Gets link.
      Returns:
      the link
    • setLink

      public T setLink(String link)
      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