Package com.whatsapp.api.domain.messages
Class Header
java.lang.Object
com.whatsapp.api.domain.messages.Header
Header content displayed on top of a message. You cannot set a header if your interactive object is of product type
-
Constructor Summary
ConstructorDescriptionHeader()
Instantiates a new Header.Header
(HeaderType type) Instantiates a new Header. -
Method Summary
Modifier and TypeMethodDescriptionGets document.getImage()
Gets image.getText()
Gets text.getType()
Gets type.getVideo()
Gets video.setDocument
(Document document) Sets document.Sets image.Sets text.setType
(HeaderType type) Sets type.Sets video.
-
Constructor Details
-
Header
Instantiates a new Header.- Parameters:
type
- Allways Required. The header type you would like to use
-
Header
public Header()Instantiates a new Header.
-
-
Method Details
-
getType
Gets type.- Returns:
- the Header
-
setType
Sets type.- Parameters:
type
- Required. The header type you would like to us- Returns:
- the Header
-
getText
Gets text.- Returns:
- the Header
-
setText
Sets text.- Parameters:
text
- Required if type is set to text. Text for the header.
Formatting allows emojis, but not markdown.
Maximum length is 60 characters.- Returns:
- the Header
-
getDocument
Gets document.- Returns:
- the Header
-
setDocument
Sets document.- Parameters:
document
- Required if type is set to document.
Contains the media object for this document.- Returns:
- the Header
-
getImage
Gets image.- Returns:
- the Header
-
setImage
Sets image.- Parameters:
image
- Required if type is set to image.
Contains the media object for this image.- Returns:
- the Header
-
getVideo
Gets video.- Returns:
- the Header
-
setVideo
Sets video.- Parameters:
video
- Required if type is set to video.
Contains the media object for this video.- Returns:
- the Header
-