Search in sources :

Example 1 with VideosResponse

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;
}
Also used : MusicDirectory(org.moire.ultrasonic.domain.MusicDirectory) VideosResponse(org.moire.ultrasonic.api.subsonic.response.VideosResponse)

Aggregations

VideosResponse (org.moire.ultrasonic.api.subsonic.response.VideosResponse)1 MusicDirectory (org.moire.ultrasonic.domain.MusicDirectory)1