Class PolicyEnforcementItem
- java.lang.Object
-
- com.restfb.types.webhook.messaging.PolicyEnforcementItem
-
- All Implemented Interfaces:
InnerMessagingItem
public class PolicyEnforcementItem extends Object implements InnerMessagingItem
Represents a receiving postback object as defined here: https://developers.facebook.com/docs/messenger-platform/webhook-reference/policy-enforcement
-
-
Constructor Summary
Constructors Constructor Description PolicyEnforcementItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAction()
String
getReason()
boolean
isBlock()
convenience method to check the action of the policy enforcementboolean
isUnblock()
convenience method to check the action of the policy enforcementvoid
setAction(String action)
void
setReason(String reason)
-
-
-
Field Detail
-
BLOCK
public static final String BLOCK
The "block" action.- See Also:
- Constant Field Values
-
UNBLOCK
public static final String UNBLOCK
The "unblock" action.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PolicyEnforcementItem
public PolicyEnforcementItem()
-
-