Last active
January 6, 2018 12:34
-
-
Save wangerekaharun/97e16895900d556b50f67aae0f6c40c5 to your computer and use it in GitHub Desktop.
Android Dummy Data example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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