public class SubscriptionAPI extends BaseAPI
| Constructor and Description |
|---|
SubscriptionAPI(ResourceFactory resourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
getSubscription(int susbcriptionId)
Returns the subscription with the given id
|
Subscription |
getSubscription(Reference reference)
Get the subscription for the given object
|
void |
subscribe(Reference reference)
Subscribes the user to the given object.
|
void |
unsubscribe(int subscriptionId)
Stops the subscription with the given id
|
void |
unsubscribe(Reference reference)
Unsubscribe from getting notifications on actions on the given object.
|
getResourceFactorypublic SubscriptionAPI(ResourceFactory resourceFactory)
public Subscription getSubscription(int susbcriptionId)
susbcriptionId - The id of the subscriptionpublic Subscription getSubscription(Reference reference)
reference - The reference to objectpublic void subscribe(Reference reference)
reference - The reference to the object to subscribe topublic void unsubscribe(int subscriptionId)
subscriptionId - The id of the subscriptionpublic void unsubscribe(Reference reference)
reference - The reference to the objectCopyright © 2014. All Rights Reserved.