Module it.auties.whatsappweb4j
Class InteractiveMessage
java.lang.Object
it.auties.whatsapp.model.message.model.ContextualMessage
it.auties.whatsapp.model.message.button.InteractiveMessage
- All Implemented Interfaces:
it.auties.protobuf.base.ProtobufMessage
,TemplateFormatter
,ButtonMessage
,Message
public final class InteractiveMessage
extends ContextualMessage
implements ButtonMessage, TemplateFormatter
A model class that represents a message holding an interactive message inside. Not really clear
how this could be used, contributions are welcomed.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
The constants of this enumerated type describe the various types of content that an interactive message can wrapstatic class
static class
static class
Nested classes/interfaces inherited from class it.auties.whatsapp.model.message.model.ContextualMessage
ContextualMessage.ContextualMessageBuilder<C extends ContextualMessage,
B extends ContextualMessage.ContextualMessageBuilder<C, B>> -
Constructor Summary
ConstructorDescriptionInteractiveMessage
(ProductHeader header, ProductBody body, ProductFooter footer, BusinessShop shopContent, BusinessCollection collectionContent, BusinessNativeFlow nativeFlowContent, ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionbody()
Product bodybody
(ProductBody body) Product bodybuilder()
protected boolean
category()
Return message categoryCollection messagecollectionContent
(BusinessCollection collectionContent) Collection messageReturns the type of content that this message wrapsThe context info of this messagecontextInfo
(ContextInfo contextInfo) The context info of this messageboolean
footer()
Product footerfooter
(ProductFooter footer) Product footerint
hashCode()
header()
Product headerheader
(ProductHeader header) Product headerNative flow messagenativeFlowContent
(BusinessNativeFlow nativeFlowContent) Native flow messagestatic InteractiveMessage
of()
Shop store messageshopContent
(BusinessShop shopContent) Shop store messagetoString()
type()
Return message typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.auties.protobuf.base.ProtobufMessage
isValueBased, toValue
-
Constructor Details
-
Method Details
-
contentType
Returns the type of content that this message wraps- Returns:
- a non-null content type
-
type
Description copied from interface:Message
Return message type -
category
Description copied from interface:Message
Return message category- Specified by:
category
in interfaceButtonMessage
- Specified by:
category
in interfaceMessage
- Returns:
- a non-null message category
-
builder
-
withShopMessageBuilder
-
withCollectionMessageBuilder
-
withNativeFlowMessageBuilder
-
of
-
header
Product header -
body
Product body -
shopContent
Shop store message -
collectionContent
Collection message -
nativeFlowContent
Native flow message -
contextInfo
The context info of this message- Overrides:
contextInfo
in classContextualMessage
-
header
Product header- Returns:
this
.
-
body
Product body- Returns:
this
.
-
shopContent
Shop store message- Returns:
this
.
-
collectionContent
Collection message- Returns:
this
.
-
nativeFlowContent
Native flow message- Returns:
this
.
-
contextInfo
The context info of this message- Overrides:
contextInfo
in classContextualMessage
- Returns:
this
.
-
toString
- Overrides:
toString
in classContextualMessage
-
equals
- Overrides:
equals
in classContextualMessage
-
canEqual
- Overrides:
canEqual
in classContextualMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContextualMessage
-