Search in sources :

Example 1 with InstagramItem

use of eu.davidea.samples.flexibleadapter.items.InstagramItem in project FlexibleAdapter by davideas.

the class DatabaseService method newInstagramItem.

/*
 	 * Creates a similar instagram item with a Header linked.
 	 */
public static InstagramItem newInstagramItem(int i) {
    InstagramHeaderItem header = new InstagramHeaderItem("H" + i);
    String place = InstagramRandomData.getRandomPlace();
    return new InstagramItem("I" + i, header).withName(InstagramRandomData.getRandomName()).withPlace(place).withImageUrl(InstagramRandomData.getImageUrl(place));
}
Also used : InstagramHeaderItem(eu.davidea.samples.flexibleadapter.items.InstagramHeaderItem) InstagramItem(eu.davidea.samples.flexibleadapter.items.InstagramItem)

Aggregations

InstagramHeaderItem (eu.davidea.samples.flexibleadapter.items.InstagramHeaderItem)1 InstagramItem (eu.davidea.samples.flexibleadapter.items.InstagramItem)1