public class PersistentMenu extends Object implements Serializable
| Constructor and Description |
|---|
PersistentMenu()
Instantiates a new persistent menu.
|
PersistentMenu(String locale,
boolean composerInputDisabled)
Instantiates a new persistent menu.
|
PersistentMenu(String locale,
boolean composerInputDisabled,
List<Button> callToActions)
Instantiates a new persistent menu.
|
PersistentMenu(String locale,
List<Button> callToActions)
Instantiates a new persistent menu.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCallToAction(Button callToAction)
Adds the call to action.
|
List<Button> |
getCallToActions()
Gets the call to actions.
|
boolean |
getComposerInputDisabled()
Gets the composer input disabled.
|
String |
getLocale()
Gets the locale.
|
String |
getTitle()
Gets the title.
|
String |
getType()
Gets the type.
|
String |
getUrl()
Gets the url.
|
String |
getWebViewHeightRatio()
Gets the web view height ratio.
|
void |
setCallToActions(List<Button> callToActions)
Sets the call to actions.
|
void |
setComposerInputDisabled(boolean composerInputDisabled)
Sets the composer input disabled.
|
void |
setLocale(String locale)
Sets the locale.
|
void |
setTitle(String title)
Sets the title.
|
void |
setType(String type)
Sets the type.
|
void |
setUrl(String url)
Sets the url.
|
void |
setWebViewHeightRatio(String webViewHeightRatio)
Sets the web view height ratio.
|
public PersistentMenu()
public PersistentMenu(String locale, boolean composerInputDisabled)
locale - the localecomposerInputDisabled - the composer input disabledpublic PersistentMenu(String locale, List<Button> callToActions)
locale - the localecallToActions - the call to actionspublic String getLocale()
public void setLocale(String locale)
locale - the new localepublic boolean getComposerInputDisabled()
public void setComposerInputDisabled(boolean composerInputDisabled)
composerInputDisabled - the new composer input disabledpublic List<Button> getCallToActions()
public void setCallToActions(List<Button> callToActions)
callToActions - the new call to actionspublic void addCallToAction(Button callToAction)
callToAction - the call to actionpublic String getType()
public void setType(String type)
type - the new typepublic String getTitle()
public void setTitle(String title)
title - the new titlepublic String getUrl()
public void setUrl(String url)
url - the new urlpublic String getWebViewHeightRatio()
public void setWebViewHeightRatio(String webViewHeightRatio)
webViewHeightRatio - the new web view height ratioCopyright © 2017 BotMill. All rights reserved.