public class DefaultAction extends Object implements Serializable
| Constructor and Description |
|---|
DefaultAction(ButtonType type,
String url)
Instantiates a new default action.
|
DefaultAction(ButtonType type,
String url,
String messengerExtensions,
String webviewHeightRatio,
String fallbackUrl)
Instantiates a new default action.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFallbackUrl()
Gets the fallback url.
|
String |
getMessengerExtensions()
Gets the messenger extensions.
|
ButtonType |
getType()
Gets the type.
|
String |
getUrl()
Gets the url.
|
String |
getWebviewHeightRatio()
Gets the webview height ratio.
|
DefaultAction |
setFallbackUrl(String fallbackUrl)
Sets the fallback url.
|
DefaultAction |
setMessengerExtensions(String messengerExtensions)
Sets the messenger extensions.
|
DefaultAction |
setType(ButtonType type)
Sets the type.
|
DefaultAction |
setUrl(String url)
Sets the url.
|
DefaultAction |
setWebviewHeightRatio(String webviewHeightRatio)
Sets the webview height ratio.
|
public DefaultAction(ButtonType type, String url, String messengerExtensions, String webviewHeightRatio, String fallbackUrl)
type - the typeurl - the urlmessengerExtensions - the messenger extensionswebviewHeightRatio - the webview height ratiofallbackUrl - the fallback urlpublic DefaultAction(ButtonType type, String url)
type - the typeurl - the urlpublic ButtonType getType()
public DefaultAction setType(ButtonType type)
type - the new typepublic String getUrl()
public DefaultAction setUrl(String url)
url - the new urlpublic String getMessengerExtensions()
public DefaultAction setMessengerExtensions(String messengerExtensions)
messengerExtensions - the new messenger extensionspublic String getWebviewHeightRatio()
public DefaultAction setWebviewHeightRatio(String webviewHeightRatio)
webviewHeightRatio - the new webview height ratiopublic String getFallbackUrl()
public DefaultAction setFallbackUrl(String fallbackUrl)
fallbackUrl - the new fallback urlCopyright © 2016 BotMill. All rights reserved.