Package com.restfb.types
Class Subscription
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.Subscription
-
- All Implemented Interfaces:
Serializable
public class Subscription extends AbstractFacebookType
Represents the App Subscription type.- Since:
- 1.5
- Author:
- Norbert Bartels
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Subscription.SubscriptionField
-
Constructor Summary
Constructors Constructor Description Subscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getActive()
Indicates whether or not the subscription is active.String
getCallbackUrl()
The URL that will receive the POST request when an update is triggered.List<Subscription.SubscriptionField>
getFields()
One or more of the set of valid fields in this object to subscribe to.String
getObject()
Indicates the object type that this subscription applies to.void
setActive(Boolean active)
Indicates whether or not the subscription is active.void
setCallbackUrl(String callbackUrl)
The URL that will receive the POST request when an update is triggered.void
setFields(List<Subscription.SubscriptionField> fields)
One or more of the set of valid fields in this object to subscribe to.void
setObject(String object)
Indicates the object type that this subscription applies to.-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Subscription
public Subscription()
-
-
Method Detail
-
getObject
public String getObject()
Indicates the object type that this subscription applies to. type: user, page, permissions, payments- Returns:
- the object type that this subscription applies to
-
setObject
public void setObject(String object)
Indicates the object type that this subscription applies to. type: user, page, permissions, payments
-
getCallbackUrl
public String getCallbackUrl()
The URL that will receive the POST request when an update is triggered.- Returns:
- the URL that will receive the POST request
-
setCallbackUrl
public void setCallbackUrl(String callbackUrl)
The URL that will receive the POST request when an update is triggered.
-
getFields
public List<Subscription.SubscriptionField> getFields()
One or more of the set of valid fields in this object to subscribe to. The set of valid fields is defined here: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3#subscribefields- Returns:
- set of fields
-
setFields
public void setFields(List<Subscription.SubscriptionField> fields)
One or more of the set of valid fields in this object to subscribe to. The set of valid fields is defined here: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3#subscribefields
-
getActive
public Boolean getActive()
Indicates whether or not the subscription is active.- Returns:
- if the subscription is active
-
-