Class PlaybackWebService
java.lang.Object
com.exxothermic.audioeverywheresdk.webservices.app.PlaybackWebService
- All Implemented Interfaces:
WebService
- Direct Known Subclasses:
PlaybackRetrofitWebService
Abstract class which defines the structure of a playback service
- Since:
- 1/13/14
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
startChannelPlayback
(PlaybackRequest playback, WebServiceResponseHandler<retrofit.client.Response> handler) Abstract method which requests a session to start a playbackabstract void
startPrivateChannelPlayback
(PlaybackRequest playback, WebServiceResponseHandler<retrofit.client.Response> handler) Abstract method which requests a session to start a playbackabstract retrofit.client.Response
stopChannelPlayback
(String deviceId, PlaybackRequest playback) Abstract method which requests a session to stop its playback synchronouslyabstract void
stopChannelPlayback
(String deviceId, PlaybackRequest playback, WebServiceResponseHandler<retrofit.client.Response> callback) Abstract method which requests a session to stop its playbackabstract retrofit.client.Response
stopChannelPlaybackv2
(String deviceId) Abstract method which requests a session to stop its playback synchronously when the app use httpabstract void
stopChannelPlaybackv2
(String deviceId, WebServiceResponseHandler<retrofit.client.Response> callback) Abstract method which requests a session to stop its playback when the app use http
-
Constructor Details
-
PlaybackWebService
protected PlaybackWebService()Default constructor
-
-
Method Details
-
stopChannelPlayback
public abstract void stopChannelPlayback(String deviceId, PlaybackRequest playback, WebServiceResponseHandler<retrofit.client.Response> callback) throws RuntimeException Abstract method which requests a session to stop its playback- Parameters:
deviceId
-callback
- The callback which will be executed upon the request completion- Throws:
retrofit.RetrofitError
RuntimeException
-
stopChannelPlayback
public abstract retrofit.client.Response stopChannelPlayback(String deviceId, PlaybackRequest playback) throws RuntimeException Abstract method which requests a session to stop its playback synchronously- Parameters:
deviceId
-- Returns:
- The HTTP response
- Throws:
retrofit.RetrofitError
RuntimeException
-
startChannelPlayback
public abstract void startChannelPlayback(PlaybackRequest playback, WebServiceResponseHandler<retrofit.client.Response> handler) throws RuntimeException Abstract method which requests a session to start a playback- Parameters:
playback
- The playback model with the audio stream definitionhandler
- The handler which will be executed upon the request completion- Throws:
retrofit.RetrofitError
RuntimeException
-
startPrivateChannelPlayback
public abstract void startPrivateChannelPlayback(PlaybackRequest playback, WebServiceResponseHandler<retrofit.client.Response> handler) throws RuntimeException Abstract method which requests a session to start a playback- Parameters:
playback
- The playback model with the audio stream definitionhandler
- The handler which will be executed upon the request completion- Throws:
retrofit.RetrofitError
RuntimeException
-
stopChannelPlaybackv2
public abstract void stopChannelPlaybackv2(String deviceId, WebServiceResponseHandler<retrofit.client.Response> callback) Abstract method which requests a session to stop its playback when the app use http- Parameters:
deviceId
-callback
- The callback which will be executed upon the request completion- Throws:
retrofit.RetrofitError
-
stopChannelPlaybackv2
public abstract retrofit.client.Response stopChannelPlaybackv2(String deviceId) throws RuntimeException Abstract method which requests a session to stop its playback synchronously when the app use http- Parameters:
deviceId
-- Returns:
- The HTTP response
- Throws:
retrofit.RetrofitError
RuntimeException
-