use of org.moire.ultrasonic.api.subsonic.response.VideosResponse in project ultrasonic by ultrasonic.
the class RESTMusicService method getVideos.
@Override
public MusicDirectory getVideos(boolean refresh, Context context, ProgressListener progressListener) throws Exception {
updateProgressListener(progressListener, R.string.parser_reading);
Response<VideosResponse> response = subsonicAPIClient.getApi().getVideos().execute();
checkResponseSuccessful(response);
MusicDirectory musicDirectory = new MusicDirectory();
musicDirectory.addAll(APIMusicDirectoryConverter.toDomainEntityList(response.body().getVideosList()));
return musicDirectory;
}
Aggregations