public class FbBotMillThreadSettingsConfiguration extends Object
FbBotDefinition. The best way of handling the
configuration would be defining your own class with a main method and put the
call on it.| Modifier and Type | Method and Description |
|---|---|
static void |
addPaymentSettings(PaymentSettings paymentSettings)
This method is used to add any payment settings needed.
|
static void |
addPaymentsTester(String paymentTesterId)
Adds a single tester for payments.
|
static void |
addPaymentsTesters(List<String> paymentTestersIds)
Adds a list of testers for payments.
|
static void |
addWhiteListDomain(String domain)
Adds a single domain on the list of domains that needs to be
"white listed".
|
static void |
deleteGetStartedButton()
Removes the current Get Started Button.
|
static void |
deletePersistentMenu()
Removes the current Persistent Menu.
|
static void |
deleteWhiteListDomain(String domain)
Removes a single domain on the list of domains that needs to be
"white listed".
|
static void |
deleteWhiteListDomains(List<String> whiteListDomains)
Removes a list of domains that are currently "white listed".
|
static void |
removePaymentsTester(String paymentTesterId)
Removes a single tester for payments.
|
static void |
removePaymentsTesters(List<String> paymentTestersIds)
Removes a list of testers for payments.
|
static void |
setGetStartedButton(String payload)
Sets the Get Started Button for the bot.
|
static void |
setGreetingMessage(String message)
Sets the greeting message for the bot.
|
static void |
setPaymentsPrivacyUrl(String privacyUrl)
Sets the payment privacy Url.
|
static void |
setPaymentsPublicKey(String publicKey)
Sets the payment public key.
|
static void |
setPersistentMenu(List<Button> buttons)
Sets a Persistent Menu of buttons which is always available to the user.
|
static void |
setWhiteListDomains(List<String> whiteListDomains)
Adds a list of domains that needs to be "white listed".
|
String |
toString() |
public static void addPaymentSettings(PaymentSettings paymentSettings)
paymentSettings - the payment settings object.public static void setGreetingMessage(String message)
message - the greeting message to show.public static void setGetStartedButton(String payload)
payload - the payload to return when the button is tapped.public static void deleteGetStartedButton()
setGetStartedButton(String)public static void setPersistentMenu(List<Button> buttons)
buttons - a list of Button (max 5 elements) to use as menu. The
buttons can only be PostbackButton or
WebUrlButton. Phone buttons are not supported.public static void deletePersistentMenu()
setPersistentMenu(List)public static void setWhiteListDomains(List<String> whiteListDomains)
whiteListDomains - the list of domains in String.public static void addWhiteListDomain(String domain)
domain - the domain that needs to be "white listed".public static void deleteWhiteListDomain(String domain)
domain - the domain that needs to be removed.public static void deleteWhiteListDomains(List<String> whiteListDomains)
whiteListDomains - the list of domains that needs to be removed.public static void addPaymentsTesters(List<String> paymentTestersIds)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTestersIds - the testers app-scoped IDs to add to the testers list.public static void addPaymentsTester(String paymentTesterId)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTesterId - the tester app-scoped ID to add to the testers list.public static void removePaymentsTester(String paymentTesterId)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTesterId - the tester app-scoped ID to remove from the testers list.public static void removePaymentsTesters(List<String> paymentTestersIds)
BuyButton, consider using the
PaymentSummary.setTestPayment(boolean) flag which is simpler for
testing.paymentTestersIds - the testers app-scoped IDs to remove from the testers list.public static void setPaymentsPublicKey(String publicKey)
publicKey - the public key to set.public static void setPaymentsPrivacyUrl(String privacyUrl)
privacyUrl - the privacy Url to set.Copyright © 2017 BotMill. All rights reserved.