Search in sources :

Example 1 with MockEpisode

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;
}
Also used : MockEpisode(butter.droid.provider.mock.model.MockEpisode) Episode(butter.droid.provider.base.model.Episode) MockEpisode(butter.droid.provider.mock.model.MockEpisode) Torrent(butter.droid.provider.base.model.Torrent) Format(butter.droid.provider.base.model.Format) Genre(butter.droid.provider.base.filter.Genre)

Aggregations

Genre (butter.droid.provider.base.filter.Genre)1 Episode (butter.droid.provider.base.model.Episode)1 Format (butter.droid.provider.base.model.Format)1 Torrent (butter.droid.provider.base.model.Torrent)1 MockEpisode (butter.droid.provider.mock.model.MockEpisode)1