Search in sources :

Example 1 with SeriesDto

use of com.karumi.marvelapiclient.model.SeriesDto in project Rosie by Karumi.

the class ComicSeriesApiDataSource method getByKey.

@Override
public ComicSeries getByKey(Integer key) throws Exception {
    MarvelResponse<SeriesDto> seriesResponse = seriesApiClient.getSeriesById(key.toString());
    SeriesDto seriesDto = seriesResponse.getResponse();
    ComicSeries comicSeries = mapper.reverseMap(seriesDto);
    return comicSeries;
}
Also used : ComicSeries(com.karumi.rosie.sample.comics.domain.model.ComicSeries) SeriesDto(com.karumi.marvelapiclient.model.SeriesDto)

Aggregations

SeriesDto (com.karumi.marvelapiclient.model.SeriesDto)1 ComicSeries (com.karumi.rosie.sample.comics.domain.model.ComicSeries)1