public class FbBotMillContext extends Object
| Modifier and Type | Method and Description |
|---|---|
static FbBotMillContext |
getInstance()
Gets the current instance of FbBotMillContext.
|
String |
getPageToken()
Gets the
pageToken. |
List<FbBot> |
getRegisteredBots()
Gets the
registeredBots. |
List<FbBotMillMonitor> |
getRegisteredMonitors()
Gets the list of registered monitors to this context.
|
String |
getValidationToken()
Gets the
validationToken. |
boolean |
isValidationEnabled()
Checks if is validation enabled.
|
void |
registerMonitor(FbBotMillMonitor monitor)
Registers a monitor to the context.
|
void |
setPageToken(String pageToken)
Deprecated.
|
void |
setup(String pageToken,
String validationToken)
Convenience method for quickly setting up the FbBotMill environment.
|
void |
setValidationEnabled(boolean validationEnabled)
Sets the
validationEnabled. |
void |
setValidationToken(String validationToken)
Deprecated.
|
String |
toString() |
public static FbBotMillContext getInstance()
public List<FbBot> getRegisteredBots()
registeredBots.registeredBots.public String getValidationToken()
validationToken.validationToken.@Deprecated public void setValidationToken(String validationToken)
validationToken. This method is deprecated. Use
setup(String, String) instead.validationToken - the validationToken to set.@Deprecated public void setPageToken(String pageToken)
pageToken. This method is deprecated. Use
setup(String, String) instead.pageToken - the pageToken to set.public boolean isValidationEnabled()
public void setValidationEnabled(boolean validationEnabled)
validationEnabled.validationEnabled - the validationEnabled to set.public void setup(String pageToken, String validationToken)
pageToken - the validation token for the Facebook page.validationToken - the validation token for the Facebook webhook.public void registerMonitor(FbBotMillMonitor monitor)
monitor - the monitor to be registered.public List<FbBotMillMonitor> getRegisteredMonitors()
Copyright © 2017 BotMill. All rights reserved.