java.lang.Object
it.auties.whatsapp.model.message.button.ButtonsMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,ButtonMessage,ContextualMessage<ButtonsMessage>,Message
public final class ButtonsMessage
extends Object
implements ButtonMessage, ContextualMessage<ButtonsMessage>
A model class that represents a message that contains buttons inside
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate ContextInfoprivate final Stringprivate final DocumentMessageprivate final ImageMessageprivate final LocationMessageprivate final ButtonsMessageHeaderTextprivate final ButtonsMessageHeader.Typeprivate final VideoOrGifMessage -
Constructor Summary
ConstructorsConstructorDescriptionButtonsMessage(ButtonsMessageHeaderText headerText, DocumentMessage headerDocument, ImageMessage headerImage, VideoOrGifMessage headerVideo, LocationMessage headerLocation, String body, String footer, ContextInfo contextInfo, List<Button> buttons, ButtonsMessageHeader.Type headerType) -
Method Summary
Modifier and TypeMethodDescriptionbody()buttons()(package private) static ButtonsMessagecustomBuilder(ButtonsMessageHeader header, String body, String footer, ContextInfo contextInfo, List<Button> buttons) footer()Optional<? extends ButtonsMessageHeader> header()Returns the header of this messagesetContextInfo(ContextInfo contextInfo) toString()type()Returns the type of this messageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface it.auties.whatsapp.model.message.model.ButtonMessage
category
-
Field Details
-
headerText
-
headerDocument
-
headerImage
-
headerVideo
-
headerLocation
-
body
-
contextInfo
-
buttons
-
headerType
-
-
Constructor Details
-
ButtonsMessage
public ButtonsMessage(ButtonsMessageHeaderText headerText, DocumentMessage headerDocument, ImageMessage headerImage, VideoOrGifMessage headerVideo, LocationMessage headerLocation, String body, String footer, ContextInfo contextInfo, List<Button> buttons, ButtonsMessageHeader.Type headerType)
-
-
Method Details
-
customBuilder
static ButtonsMessage customBuilder(ButtonsMessageHeader header, String body, String footer, ContextInfo contextInfo, List<Button> buttons) -
type
Returns the type of this message -
header
Returns the header of this message- Returns:
- an optional
-
headerText
-
headerDocument
-
headerImage
-
headerVideo
-
headerLocation
-
body
-
contextInfo
- Specified by:
contextInfoin interfaceContextualMessage<ButtonsMessage>
-
buttons
-
headerType
-
setContextInfo
- Specified by:
setContextInfoin interfaceContextualMessage<ButtonsMessage>
-
toString
-