Skip to content

Instantly share code, notes, and snippets.

@wangerekaharun
Last active January 6, 2018 12:34
Show Gist options
  • Save wangerekaharun/97e16895900d556b50f67aae0f6c40c5 to your computer and use it in GitHub Desktop.
Save wangerekaharun/97e16895900d556b50f67aae0f6c40c5 to your computer and use it in GitHub Desktop.
Android Dummy Data example
package com.wangerekaharun.eldoclassified.Utils;
import com.wangerekaharun.eldoclassified.Models.Business;
import java.util.ArrayList;
import java.util.List;
/**
* Created by harun on 8/31/17.
*/
public class BusinessDummyData {
// you call the getBusiness() method in another class to get the list of businesses
public static List<Business> getBusinesses() {
List<Business> businessList = new ArrayList<>();
Business business = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Open Now");
businessList.add(business);
Business business1 = new Business("Eldo Museum", "", "", "", 77, 77, 1, "Where the heart is", "Sachi Plaza,Eldoret", "Closed");
businessList.add(business1);
Business business2 = new Business("Naivas Supermarket", "", "", "", 77, 77, 1, "Best shopping deals", "Sachi Plaza,Eldoret", "Open Now");
businessList.add(business2);
Business business3 = new Business("Eldoret Mealers", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Open Now");
businessList.add(business3);
Business business4 = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Open Now");
businessList.add(business4);
Business business5 = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Closed");
businessList.add(business5);
Business business6 = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Open Now");
businessList.add(business6);
Business business7 = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Closed");
businessList.add(business7);
Business business8 = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Open Now");
businessList.add(business8);
Business business9 = new Business("Eldo Bakery", "", "", "", 77, 77, 1, "Eldoret Finest", "Sachi Plaza,Eldoret", "Closed");
businessList.add(business9);
return businessList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment