Interface ChannelInfoRetrofitAPI
public interface ChannelInfoRetrofitAPI
Interface for the channel info retrofit based service
- Since:
- 10/2/13
-
Method Summary
Modifier and TypeMethodDescriptiongetChannelInfo
(String session) Retrofit method which requests which retrieves the channel info for audio audioChannelsRetrofit method which requests which retrieves the channel info for audio audioChannelsgetExtraChannelInfo
(int device) Retrofit method which requests which retrieves the channel info for extra audioChannelsgetExtraChannelInfo
(String session) void
getLocalChannels
(String token, retrofit.Callback<List<AudioChannel>> handler) void
getOffers
(int device, APIRetrofitCallback<List<CustomButton>> callback) Retrofit method which requests which retrieves the channel info for extra audioChannelsvoid
setLocalChannels
(String token, List<AudioChannel> audioChannelList, retrofit.Callback<retrofit.client.Response> handler)
-
Method Details
-
getExtraChannelInfo
@GET("/exxtractor/api/v2/featuredContents") List<CustomButton> getExtraChannelInfo(@Query("device") int device) throws retrofit.RetrofitError Retrofit method which requests which retrieves the channel info for extra audioChannels- Returns:
- The channel info
- Throws:
retrofit.RetrofitError
-
getOffers
@GET("/exxtractor/api/v2/offers") void getOffers(@Query("device") int device, APIRetrofitCallback<List<CustomButton>> callback) throws retrofit.RetrofitError Retrofit method which requests which retrieves the channel info for extra audioChannels- Throws:
retrofit.RetrofitError
-
getChannelList
@GET("/exxtractor/api/v2/networkChannels") List<AudioChannel> getChannelList() throws retrofit.RetrofitErrorRetrofit method which requests which retrieves the channel info for audio audioChannels- Returns:
- The channel info
- Throws:
retrofit.RetrofitError
-
getExtraChannelInfo
@GET("/api/myapp/extras") CustomButtonChannelInfo getExtraChannelInfo(@Query("session") String session) throws retrofit.RetrofitError - Throws:
retrofit.RetrofitError
-
getChannelInfo
@GET("/api/myapp/asClientChannels") AudioChannelInfo getChannelInfo(@Query("session") String session) throws retrofit.RetrofitError Retrofit method which requests which retrieves the channel info for audio audioChannels- Parameters:
session
- The current session for MyBox- Returns:
- The channel info
- Throws:
retrofit.RetrofitError
-
setLocalChannels
@PUT("/exxtractor/api/v2/localChannels") void setLocalChannels(@Query("token") String token, @Body List<AudioChannel> audioChannelList, retrofit.Callback<retrofit.client.Response> handler) -
getLocalChannels
@GET("/exxtractor/api/v2/localChannels") void getLocalChannels(@Query("token") String token, retrofit.Callback<List<AudioChannel>> handler)
-