Class PolicyEnforcementItem
java.lang.Object
com.restfb.types.webhook.messaging.PolicyEnforcementItem
- All Implemented Interfaces:
InnerMessagingItem
Represents a receiving postback object as defined here:
https://developers.facebook.com/docs/messenger-platform/webhook-reference/policy-enforcement
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isBlock()
convenience method to check the action of the policy enforcementboolean
convenience method to check the action of the policy enforcementvoid
void
-
Field Details
-
BLOCK
The "block" action.- See Also:
-
UNBLOCK
The "unblock" action.- See Also:
-
-
Constructor Details
-
PolicyEnforcementItem
public PolicyEnforcementItem()
-
-
Method Details
-
isBlock
convenience method to check the action of the policy enforcement- Returns:
true
if block,false
if unblock
-
isUnblock
convenience method to check the action of the policy enforcement- Returns:
true
if unblock,false
if block
-
getAction
-
setAction
-
getReason
-
setReason
-