Class ChannelInfoRetrofitWebService
java.lang.Object
com.exxothermic.audioeverywheresdk.webservices.api.exxtractorapi.retrofit.ChannelInfoRetrofitWebService
- All Implemented Interfaces:
ChannelInfoWebService
,WebService
Class which serves as a wrapper for the ChannelInfoRetrofitAPI
- Since:
- 10/2/13
-
Constructor Summary
ConstructorsConstructorDescriptionChannelInfoRetrofitWebService
(ChannelInfoRetrofitAPI api, FeaturesHelper.ExxtractorApiVersion apiVersion) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionMethod which performs the request that retrieves the channel info for audio audioChannels through the APIgetExtraChannelInfo
(int deviceType) Method which performs the request that retrieves the channel info for extra audioChannels through the APIvoid
getLocalChannels
(String userToken, WebServiceResponseHandler<List<AudioChannel>> callback) Method that will get the local channel information to the current exxtractorvoid
getOffers
(int deviceType, WebServiceResponseHandler<List<CustomButton>> callback) Method which performs the request that retrieves the venue offers through the APIvoid
setLocalChannels
(String userToken, List<AudioChannel> channelList, WebServiceResponseHandler<retrofit.client.Response> callback) Method that will set the local channel information to the current exxtractor
-
Constructor Details
-
ChannelInfoRetrofitWebService
public ChannelInfoRetrofitWebService(ChannelInfoRetrofitAPI api, FeaturesHelper.ExxtractorApiVersion apiVersion) Default constructor- Parameters:
api
- The retrofit API for the channel info serviceapiVersion
- The api version that this class will use to connect to the exxtractor
-
-
Method Details
-
getChannelMap
Method which performs the request that retrieves the channel info for audio audioChannels through the API- Specified by:
getChannelMap
in interfaceChannelInfoWebService
- Returns:
- The channel info
- Throws:
retrofit.RetrofitError
-
getExtraChannelInfo
Method which performs the request that retrieves the channel info for extra audioChannels through the API- Specified by:
getExtraChannelInfo
in interfaceChannelInfoWebService
- 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 interfaceChannelInfoWebService
- Parameters:
deviceType
- to get the right image sizecallback
- 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 interfaceChannelInfoWebService
- Parameters:
userToken
- the user token that is logged inchannelList
- the channel list that will be set to the exxtractorcallback
- 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 interfaceChannelInfoWebService
- Parameters:
userToken
- the user token that is logged incallback
- callback that will handle the status of the request
-