Skip to content

Instantly share code, notes, and snippets.

@valokafor
Last active October 19, 2015 06:09
Show Gist options
  • Save valokafor/058f62aca36125c24709 to your computer and use it in GitHub Desktop.
Save valokafor/058f62aca36125c24709 to your computer and use it in GitHub Desktop.
This is a sample data generator for my Recycler View Drag and Drop tutorial on my blog ValOkafor.com
package com.okason.draganddrop.utilities;
import com.okason.draganddrop.Customer;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Valentine on 10/18/2015.
*/
public class SampleData {
public static List<Customer> addSampleCustomers(){
List<Customer> customers = new ArrayList<Customer>();
Customer customer1 = new Customer();
customer1.setId((long) 1);
customer1.setName("Debbie Sam");
customer1.setEmailAddress("[email protected]");
customer1.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest1.JPG");
customers.add(customer1);
Customer customer2 = new Customer();
customer2.setId((long) 2);
customer2.setName("Keisha Williams");
customer2.setEmailAddress("[email protected]");
customer2.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest2.JPG");
customers.add(customer2);
Customer customer3 = new Customer();
customer3.setId((long) 3);
customer3.setName("Gregg McQuire");
customer3.setEmailAddress("[email protected]");
customer3.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest3.JPG");
customers.add(customer3);
Customer customer4 = new Customer();
customer4.setId((long) 4);
customer4.setName("Jamal Puma");
customer4.setEmailAddress("[email protected]");
customer4.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest4.JPG");
customers.add(customer4);
Customer customer5 = new Customer();
customer5.setId((long) 5);
customer5.setName("Dora Keesler");
customer5.setEmailAddress("[email protected]");
customer5.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest5.JPG");
customers.add(customer5);
Customer customer6 = new Customer();
customer6.setId((long) 6);
customer6.setName("Anthony Lopez");
customer6.setEmailAddress("[email protected]");
customer6.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest6.JPG");
customers.add(customer6);
Customer customer7 = new Customer();
customer7.setId((long) 7);
customer7.setName("Ricardo Weisel");
customer7.setEmailAddress("[email protected]");
customer7.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest7.JPG");
customers.add(customer7);
Customer customer8 = new Customer();
customer8.setId((long) 8);
customer8.setName("Angele Lu");
customer8.setEmailAddress("[email protected]");
customer8.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest8.JPG");
customers.add(customer8);
Customer customer9 = new Customer();
customer9.setId((long) 9);
customer9.setName("Brendon Suh");
customer9.setEmailAddress("[email protected]");
customer9.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest9.JPG");
customers.add(customer9);
Customer customer10 = new Customer();
customer10.setId((long) 10);
customer10.setName("Pietro Augustino");
customer10.setEmailAddress("[email protected]");
customer10.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest10.JPG");
customers.add(customer10);
Customer customer11 = new Customer();
customer11.setId((long) 11);
customer11.setName("Matt Zebrotta");
customer11.setEmailAddress("[email protected]");
customer11.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest11.JPG");
customers.add(customer11);
Customer customer12 = new Customer();
customer12.setId((long) 12);
customer12.setName("James McGiney");
customer12.setEmailAddress("[email protected]");
customer12.setImagePath("https://dl.dropboxusercontent.com/u/15447938/attendanceapp/guest12.JPG");
customers.add(customer12);
return customers;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment