Package com.whatsapp.api.domain.messages
Class DocumentMessage
java.lang.Object
com.whatsapp.api.domain.messages.MediaMessage<DocumentMessage>
com.whatsapp.api.domain.messages.DocumentMessage
The type Document message.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets caption.Gets file name.setCaption
(String caption) Sets caption.setFileName
(String fileName) Sets file name.Methods inherited from class com.whatsapp.api.domain.messages.MediaMessage
getId, getLink, setId, setLink
-
Constructor Details
-
DocumentMessage
public DocumentMessage()
-
-
Method Details
-
getCaption
Gets caption.- Returns:
- the caption
-
setCaption
Sets caption.- Parameters:
caption
- Optional. Describes the specified image, document, or video media. Do not use with audio or sticker media.- Returns:
- the caption
-
getFileName
Gets file name.- Returns:
- the file name
-
setFileName
Sets file name.- Parameters:
fileName
- Optional. Describes the filename for the specific document. Use only with document media. The extension of the filename will specify what format the document is displayed as in WhatsApp.- Returns:
- the file name
-