java.lang.Object
it.auties.whatsapp.model.message.button.ListMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,ButtonMessage,ContextualMessage<ListMessage>,Message
public final class ListMessage
extends Object
implements ContextualMessage<ListMessage>, ButtonMessage
A model class that represents a message that contains a list of buttons or a list of products
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type describe the various types ofListMessage -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate ContextInfoprivate final Stringprivate final Stringprivate final ListMessage.Typeprivate final ProductListInfoprivate final List<ButtonSection> private final String -
Constructor Summary
ConstructorsConstructorDescriptionListMessage(String title, String description, String button, ListMessage.Type listType, List<ButtonSection> sections, ProductListInfo productListInfo, String footer, ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionbutton()footer()listType()sections()setContextInfo(ContextInfo contextInfo) title()toString()type()Return message typeMethods 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
-
title
-
description
-
button
-
listType
-
sections
-
productListInfo
-
contextInfo
-
-
Constructor Details
-
ListMessage
public ListMessage(String title, String description, String button, ListMessage.Type listType, List<ButtonSection> sections, ProductListInfo productListInfo, String footer, ContextInfo contextInfo)
-
-
Method Details
-
type
Description copied from interface:MessageReturn message type -
title
-
description
-
button
-
listType
-
sections
-
productListInfo
-
contextInfo
- Specified by:
contextInfoin interfaceContextualMessage<ListMessage>
-
setContextInfo
- Specified by:
setContextInfoin interfaceContextualMessage<ListMessage>
-
toString
-