use of com.zype.fire.api.Model.PlaylistResponse in project zype-firebuilder by zype.
the class ZypeApi method loadPlayList.
public PlaylistData loadPlayList(String playlistId) {
try {
HashMap<String, String> params = new HashMap<>();
params.put(APP_KEY, ZypeSettings.APP_KEY);
Response response = apiImpl.loadPlaylist(playlistId, params).execute();
if (response.isSuccessful()) {
return ((PlaylistResponse) response.body()).response;
} else {
return null;
}
} catch (IOException e) {
e.printStackTrace();
return null;
}
}
Aggregations