Interface ISubscriptionsService
public interface ISubscriptionsService
API methods for performing subscription operations.
-
Method Summary
Modifier and TypeMethodDescriptionString[]Retrieves list of event names.String[]getList()Retrieves list of subscriptions.Creates a new subscription.voidunsubscribe(String id) Unsubscribes a user from the system.
-
Method Details
-
subscribe
Creates a new subscription.- Parameters:
endpoint- The endpoint to subscribe to.isRestEndpoint- Whether the endpoint is a REST endpoint.path- The resource path.eventName- The event name.- Returns:
- the subscription identifier.
-
unsubscribe
Unsubscribes a user from the system.- Parameters:
id- the subscription identifier
-
getEventNames
String[] getEventNames()Retrieves list of event names.- Returns:
- list of event names.
-
getList
String[] getList()Retrieves list of subscriptions.- Returns:
- The list of subscriptions.
-