Search in sources :

Example 1 with ComicSeries

use of com.karumi.rosie.sample.comics.domain.model.ComicSeries in project Rosie by Karumi.

the class ComicSeriesDetailsActivityTest method getComicSeries.

@NonNull
private ComicSeries getComicSeries(int id) {
    ComicSeries comicSeries = new ComicSeries();
    comicSeries.setKey(id);
    comicSeries.setDescription("desc - " + id);
    comicSeries.setName("name - " + id);
    comicSeries.setComplete(true);
    comicSeries.setCoverUrl("https://id.annihil.us/u/prod/marvel/id/mg/c/60/55b6a28ef24fa.jpg");
    comicSeries.setRating("R+");
    comicSeries.setComics(givenComics());
    return comicSeries;
}
Also used : ComicSeries(com.karumi.rosie.sample.comics.domain.model.ComicSeries) NonNull(android.support.annotation.NonNull)

Example 2 with ComicSeries

use of com.karumi.rosie.sample.comics.domain.model.ComicSeries in project Rosie by Karumi.

the class ComicSeriesFakeDataSource method getVision.

@NonNull
private ComicSeries getVision() {
    ComicSeries vision = new ComicSeries();
    vision.setKey(VISION_KEY);
    vision.setName("Vision # 1");
    vision.setCoverUrl("http://i.annihil.us/u/prod/marvel/i/mg/4/10/5655d4822c8d8/detail.jpg");
    vision.setDescription("WHO ARE THE GUARDIANS 1000?! Defending the galaxy is a good gig, but Drax isn’t thrilled" + " with the combat hours (not enough of them) and Rocket isn’t thrilled with the" + " compensation (not enough of it). They’re off on an adventure to supplement both," + " and Groot is happy to come along. But instead of the perks they want, they’re about" + " to get more trouble than they can handle. Good thing the Guardians 3000 are on hand" + " to help! But what about…THE GUARDIANS 1000??!! Also in this issue, Latour and" + " Cheung tell a one-off story of Ben Grimm and Rocket Raccoon, stuck on a planet" + " where culture is based on Earth-style professional wrestling…but the stakes are" + " life and death! THIS AIN’T KAYFABE, BROTHER! ");
    vision.setReleaseYear(2015);
    vision.setRating("T");
    vision.setComics(getComics(vision.getName()));
    return vision;
}
Also used : ComicSeries(com.karumi.rosie.sample.comics.domain.model.ComicSeries) NonNull(android.support.annotation.NonNull)

Example 3 with ComicSeries

use of com.karumi.rosie.sample.comics.domain.model.ComicSeries in project Rosie by Karumi.

the class ComicSeriesFakeDataSource method getComicSeries.

private ComicSeries getComicSeries(int i) {
    ComicSeries comicSeries = allComicSeries[i];
    comicSeries.setComplete(true);
    return comicSeries;
}
Also used : ComicSeries(com.karumi.rosie.sample.comics.domain.model.ComicSeries)

Example 4 with ComicSeries

use of com.karumi.rosie.sample.comics.domain.model.ComicSeries in project Rosie by Karumi.

the class ComicSeriesFakeDataSource method getSpidey.

@NonNull
private ComicSeries getSpidey() {
    ComicSeries spidey = new ComicSeries();
    spidey.setKey(SPIDEY_KEY);
    spidey.setName("Spidey # 1");
    spidey.setCoverUrl("http://i.annihil.us/u/prod/marvel/i/mg/6/50/5655d3a0e63d5/detail.jpg");
    spidey.setDescription("WHO ARE THE GUARDIANS 1000?! Defending the galaxy is a good gig, but Drax isn’t thrilled" + " with the combat hours (not enough of them) and Rocket isn’t thrilled with the" + " compensation (not enough of it). They’re off on an adventure to supplement both," + " and Groot is happy to come along. But instead of the perks they want, they’re about" + " to get more trouble than they can handle. Good thing the Guardians 3000 are on hand" + " to help! But what about…THE GUARDIANS 1000??!! Also in this issue, Latour and" + " Cheung tell a one-off story of Ben Grimm and Rocket Raccoon, stuck on a planet" + " where culture is based on Earth-style professional wrestling…but the stakes are" + " life and death! THIS AIN’T KAYFABE, BROTHER! ");
    spidey.setReleaseYear(2015);
    spidey.setRating("A");
    spidey.setComics(getComics(spidey.getName()));
    return spidey;
}
Also used : ComicSeries(com.karumi.rosie.sample.comics.domain.model.ComicSeries) NonNull(android.support.annotation.NonNull)

Example 5 with ComicSeries

use of com.karumi.rosie.sample.comics.domain.model.ComicSeries in project Rosie by Karumi.

the class ComicSeriesFakeDataSource method getNova.

@NonNull
private ComicSeries getNova() {
    ComicSeries nova = new ComicSeries();
    nova.setKey(NOVA_KEY);
    nova.setName("Nova # 1");
    nova.setCoverUrl("http://i.annihil.us/u/prod/marvel/i/mg/6/10/5655d2a8ba225/detail.jpg");
    nova.setDescription("WHO ARE THE GUARDIANS 1000?! Defending the galaxy is a good gig, but Drax isn’t thrilled" + " with the combat hours (not enough of them) and Rocket isn’t thrilled with the" + " compensation (not enough of it). They’re off on an adventure to supplement both," + " and Groot is happy to come along. But instead of the perks they want, they’re about" + " to get more trouble than they can handle. Good thing the Guardians 3000 are on hand" + " to help! But what about…THE GUARDIANS 1000??!! Also in this issue, Latour and" + " Cheung tell a one-off story of Ben Grimm and Rocket Raccoon, stuck on a planet" + " where culture is based on Earth-style professional wrestling…but the stakes are" + " life and death! THIS AIN’T KAYFABE, BROTHER! ");
    nova.setReleaseYear(2015);
    nova.setRating("Parental advisory");
    nova.setComics(getComics(nova.getName()));
    return nova;
}
Also used : ComicSeries(com.karumi.rosie.sample.comics.domain.model.ComicSeries) NonNull(android.support.annotation.NonNull)

Aggregations

ComicSeries (com.karumi.rosie.sample.comics.domain.model.ComicSeries)22 NonNull (android.support.annotation.NonNull)7 PaginatedCollection (com.karumi.rosie.repository.PaginatedCollection)3 InjectedInstrumentationTest (com.karumi.rosie.sample.InjectedInstrumentationTest)3 Comic (com.karumi.rosie.sample.comics.domain.model.Comic)3 Test (org.junit.Test)3 Page (com.karumi.rosie.repository.datasource.paginated.Page)2 ArrayList (java.util.ArrayList)2 LinkedList (java.util.LinkedList)2 Activity (android.app.Activity)1 ViewPager (android.support.v4.view.ViewPager)1 LargeTest (android.test.suitebuilder.annotation.LargeTest)1 SeriesCollectionDto (com.karumi.marvelapiclient.model.SeriesCollectionDto)1 SeriesDto (com.karumi.marvelapiclient.model.SeriesDto)1 RosieUseCase (com.karumi.rosie.domain.usecase.RosieUseCase)1 UseCase (com.karumi.rosie.domain.usecase.annotation.UseCase)1 CharacterDetailsActivity (com.karumi.rosie.sample.characters.view.activity.CharacterDetailsActivity)1 ComicSeriesDetailsActivity (com.karumi.rosie.sample.comics.view.activity.ComicSeriesDetailsActivity)1 ComicSeriesDetailViewModel (com.karumi.rosie.sample.comics.view.viewmodel.ComicSeriesDetailViewModel)1 ComicSeriesViewModel (com.karumi.rosie.sample.comics.view.viewmodel.ComicSeriesViewModel)1