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;
}
Aggregations