use of butter.droid.provider.mock.model.MockEpisode in project butter-android by butterproject.
the class MockMediaProvider method mapEpisodes.
private Episode[] mapEpisodes(MockEpisode[] mockEpisodes) {
Episode[] episodes = new Episode[mockEpisodes.length];
for (int i = 0; i < mockEpisodes.length; i++) {
MockEpisode episode = mockEpisodes[i];
episodes[i] = new Episode(String.valueOf(episode.getId()), episode.getTitle(), episode.getYear(), new Genre[0], -1, episode.getPoster(), episode.getBackdrop(), episode.getSynopsis(), new Torrent[] { new Torrent(episode.getTorrent(), new Format(episode.getQuality(), Format.FORMAT_NORMAL), 0) }, episode.getEpisdoe());
}
return episodes;
}
Aggregations