public class ListTemplateElement extends Object implements Serializable
| Constructor and Description |
|---|
ListTemplateElement(String title)
Instantiates a new list template element.
|
| Modifier and Type | Method and Description |
|---|---|
ListTemplateElement |
addButton(Button button)
Adds the button.
|
List<Button> |
getButtons()
Gets the buttons.
|
DefaultAction |
getDefaultAction()
Gets the default action.
|
String |
getImageUrl()
Gets the image url.
|
String |
getSubtitle()
Gets the subtitle.
|
String |
getTitle()
Gets the title.
|
ListTemplateElement |
setButtons(List<Button> buttons)
Sets the buttons.
|
ListTemplateElement |
setDefaultAction(DefaultAction defaultAction)
Sets the default action.
|
ListTemplateElement |
setImageUrl(String imageUrl)
Sets the image url.
|
ListTemplateElement |
setSubtitle(String subtitle)
Sets the subtitle.
|
ListTemplateElement |
setTitle(String title)
Sets the title.
|
public ListTemplateElement(String title)
title - the titlepublic DefaultAction getDefaultAction()
public ListTemplateElement setDefaultAction(DefaultAction defaultAction)
defaultAction - the new default actionpublic String getTitle()
public ListTemplateElement setTitle(String title)
title - the new titlepublic String getImageUrl()
public ListTemplateElement setImageUrl(String imageUrl)
imageUrl - the new image urlpublic String getSubtitle()
public ListTemplateElement setSubtitle(String subtitle)
subtitle - the new subtitlepublic ListTemplateElement setButtons(List<Button> buttons)
buttons - the new buttonspublic ListTemplateElement addButton(Button button)
button - the buttonCopyright © 2016 BotMill. All rights reserved.