public interface Subscribable
Subscribable interface.
| Modifier and Type | Method and Description |
|---|---|
SonosSuccess |
subscribe(String clientToken,
String resourceId)
Subscribe to events for this resource.
|
SonosSuccess |
unsubscribe(String clientToken,
String resourceId)
Unsubscribe from events related to this resource.
|
SonosSuccess subscribe(String clientToken, String resourceId) throws SonosApiClientException, SonosApiError
Subscribe to events for this resource.
clientToken - for the userresourceId - of the resource to subscribe toSonosApiClientException - if an error occurs during the callSonosApiError - if there is an error from the APISonosSuccess unsubscribe(String clientToken, String resourceId) throws SonosApiClientException, SonosApiError
Unsubscribe from events related to this resource.
clientToken - for the userresourceId - of the resource to unsubscribe fromSonosApiClientException - if an error occurs during the callSonosApiError - if there is an error from the APICopyright © 2018. All rights reserved.