public class PlaybackMetadataResource extends Object implements Subscribable
PlaybackMetadataResource class.
| Constructor and Description |
|---|
PlaybackMetadataResource(SonosApiClient apiClient)
Constructor for PlaybackMetadataResource.
|
| Modifier and Type | Method and Description |
|---|---|
SonosSuccess |
subscribe(String clientToken,
String groupId)
Subscribe to events for this resource.
|
SonosSuccess |
unsubscribe(String clientToken,
String groupId)
Unsubscribe from events related to this resource.
|
public PlaybackMetadataResource(SonosApiClient apiClient)
Constructor for PlaybackMetadataResource.
apiClient - a SonosApiClient object.public SonosSuccess subscribe(String clientToken, String groupId) throws SonosApiClientException, SonosApiError
Subscribe to events for this resource.
subscribe in interface SubscribableclientToken - for the usergroupId - of the resource to subscribe toSonosApiClientException - if an error occurs during the callSonosApiError - if there is an error from the APIpublic SonosSuccess unsubscribe(String clientToken, String groupId) throws SonosApiClientException, SonosApiError
Unsubscribe from events related to this resource.
unsubscribe in interface SubscribableclientToken - for the usergroupId - 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.