use of com.zype.fire.api.Model.ChannelResponse in project zype-firebuilder by zype.
the class ZypeApi method loadEpgChannels.
public List<Channel> loadEpgChannels() {
try {
HashMap<String, String> params = new HashMap<>();
params.put(APP_KEY, ZypeSettings.APP_KEY);
params.put(PAGE, String.valueOf(1));
params.put(PER_PAGE, "100");
Response response = apiImpl.epgChannels(params).execute();
if (response.isSuccessful()) {
return ((ChannelResponse) response.body()).response;
} else {
return null;
}
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
Aggregations