public class ListTemplatePayload extends TemplateBasePayload
templateType| Constructor and Description |
|---|
ListTemplatePayload()
Instantiates a new ListTemplatePayload.
|
ListTemplatePayload(List<ListTemplateElement> elements)
Instantiates a new ListTemplatePayload.
|
ListTemplatePayload(List<ListTemplateElement> elements,
List<Button> buttons)
Instantiates a new ListTemplatePayload.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(Button button)
Adds the button.
|
void |
addElement(ListTemplateElement element)
Adds the element.
|
boolean |
equals(Object obj) |
List<Button> |
getButtons()
Gets the
buttons. |
List<ListTemplateElement> |
getElements()
Gets the
elements. |
TopElementStyle |
getTopElementStyle()
Gets the
topElementStyle. |
int |
hashCode() |
void |
setButtons(List<Button> buttons)
Sets the
buttons. |
void |
setElements(List<ListTemplateElement> elements)
Sets the
elements. |
void |
setTopElementStyle(TopElementStyle topElementStyle)
Sets the
topElementStyle. |
String |
toString() |
getTemplateType, setTemplateTypepublic ListTemplatePayload()
public ListTemplatePayload(List<ListTemplateElement> elements)
elements - the elements.public void setButtons(List<Button> buttons)
buttons.buttons - the buttons to set.public TopElementStyle getTopElementStyle()
topElementStyle.topElementStyle.public void setTopElementStyle(TopElementStyle topElementStyle)
topElementStyle.topElementStyle - the topElementStyle to set.public List<ListTemplateElement> getElements()
elements.elements.public void setElements(List<ListTemplateElement> elements)
elements.elements - the elements to set.public void addElement(ListTemplateElement element)
element - the element to add.public void addButton(Button button)
button - the button to add.public int hashCode()
hashCode in class TemplateBasePayloadpublic boolean equals(Object obj)
equals in class TemplateBasePayloadpublic String toString()
toString in class TemplateBasePayloadCopyright © 2017 BotMill. All rights reserved.