Class PlaybackWebService

java.lang.Object
com.exxothermic.audioeverywheresdk.webservices.app.PlaybackWebService
All Implemented Interfaces:
WebService
Direct Known Subclasses:
PlaybackRetrofitWebService

public abstract class PlaybackWebService extends Object implements WebService
Abstract class which defines the structure of a playback service
Since:
1/13/14
  • 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 definition
      handler - 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 definition
      handler - 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