FacebookChannelProperties Class
- java.
lang. Object - com.
azure. resourcemanager. botservice. models. FacebookChannelProperties
- com.
Implements
public final class FacebookChannelProperties
implements JsonSerializable<FacebookChannelProperties>
The parameters to provide for the Facebook channel.
Constructor Summary
| Constructor | Description |
|---|---|
| FacebookChannelProperties() |
Creates an instance of Facebook |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
appId()
Get the app |
| String |
appSecret()
Get the app |
| String |
callbackUrl()
Get the callback |
|
static
Facebook |
fromJson(JsonReader jsonReader)
Reads an instance of Facebook |
| boolean |
isEnabled()
Get the is |
|
List<Facebook |
pages()
Get the pages property: The list of Facebook pages. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
verifyToken()
Get the verify |
|
Facebook |
withAppId(String appId)
Set the app |
|
Facebook |
withAppSecret(String appSecret)
Set the app |
|
Facebook |
withIsEnabled(boolean isEnabled)
Set the is |
|
Facebook |
withPages(List<FacebookPage> pages)
Set the pages property: The list of Facebook pages. |
Methods inherited from java.lang.Object
Constructor Details
FacebookChannelProperties
public FacebookChannelProperties()
Creates an instance of FacebookChannelProperties class.
Method Details
appId
public String appId()
Get the appId property: Facebook application id.
Returns:
appSecret
public String appSecret()
Get the appSecret property: Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
callbackUrl
public String callbackUrl()
Get the callbackUrl property: Callback Url.
Returns:
fromJson
public static FacebookChannelProperties fromJson(JsonReader jsonReader)
Reads an instance of FacebookChannelProperties from the JsonReader.
Parameters:
Returns:
Throws:
isEnabled
public boolean isEnabled()
Get the isEnabled property: Whether this channel is enabled for the bot.
Returns:
pages
public List<FacebookPage> pages()
Get the pages property: The list of Facebook pages.
Returns:
toJson
validate
public void validate()
Validates the instance.
verifyToken
public String verifyToken()
Get the verifyToken property: Verify token. Value only returned through POST to the action Channel List API, otherwise empty.
Returns:
withAppId
public FacebookChannelProperties withAppId(String appId)
Set the appId property: Facebook application id.
Parameters:
Returns:
withAppSecret
public FacebookChannelProperties withAppSecret(String appSecret)
Set the appSecret property: Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
Parameters:
Returns:
withIsEnabled
public FacebookChannelProperties withIsEnabled(boolean isEnabled)
Set the isEnabled property: Whether this channel is enabled for the bot.
Parameters:
Returns:
withPages
public FacebookChannelProperties withPages(List<FacebookPage> pages)
Set the pages property: The list of Facebook pages.
Parameters:
Returns: