java.lang.Object
com.exxothermic.audioeverywheresdk.webservices.api.exxtractorapi.retrofit.ChannelInfoRetrofitWebService
All Implemented Interfaces:
ChannelInfoWebService, WebService

public class ChannelInfoRetrofitWebService extends Object implements ChannelInfoWebService
Class which serves as a wrapper for the ChannelInfoRetrofitAPI
Since:
10/2/13
  • Constructor Details

    • ChannelInfoRetrofitWebService

      public ChannelInfoRetrofitWebService(ChannelInfoRetrofitAPI api, FeaturesHelper.ExxtractorApiVersion apiVersion)
      Default constructor
      Parameters:
      api - The retrofit API for the channel info service
      apiVersion - The api version that this class will use to connect to the exxtractor
  • Method Details

    • getChannelMap

      public Map<String,AudioChannel> getChannelMap() throws retrofit.RetrofitError
      Method which performs the request that retrieves the channel info for audio audioChannels through the API
      Specified by:
      getChannelMap in interface ChannelInfoWebService
      Returns:
      The channel info
      Throws:
      retrofit.RetrofitError
    • getExtraChannelInfo

      public List<CustomButton> getExtraChannelInfo(int deviceType) throws retrofit.RetrofitError
      Method which performs the request that retrieves the channel info for extra audioChannels through the API
      Specified by:
      getExtraChannelInfo in interface ChannelInfoWebService
      Returns:
      The channel info
      Throws:
      retrofit.RetrofitError
    • getOffers

      public void getOffers(int deviceType, WebServiceResponseHandler<List<CustomButton>> callback) throws RuntimeException
      Method which performs the request that retrieves the venue offers through the API
      Specified by:
      getOffers in interface ChannelInfoWebService
      Parameters:
      deviceType - to get the right image size
      callback - to operate over the resulting custom buttons
      Throws:
      retrofit.RetrofitError
      RuntimeException
    • setLocalChannels

      public void setLocalChannels(String userToken, List<AudioChannel> channelList, WebServiceResponseHandler<retrofit.client.Response> callback)
      Method that will set the local channel information to the current exxtractor
      Specified by:
      setLocalChannels in interface ChannelInfoWebService
      Parameters:
      userToken - the user token that is logged in
      channelList - the channel list that will be set to the exxtractor
      callback - callback that will handle the status of the request
    • getLocalChannels

      public void getLocalChannels(String userToken, WebServiceResponseHandler<List<AudioChannel>> callback)
      Method that will get the local channel information to the current exxtractor
      Specified by:
      getLocalChannels in interface ChannelInfoWebService
      Parameters:
      userToken - the user token that is logged in
      callback - callback that will handle the status of the request