Skip to content

Commit

Permalink
Merge pull request #113 from waffledood/update-sample-data
Browse files Browse the repository at this point in the history
Update sample data
  • Loading branch information
waffledood authored Apr 1, 2022
2 parents feb1df7 + 1bca4ed commit 7963fe5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class MainApp extends Application {

public static final Version VERSION = new Version(1, 3, 2, true);
public static final Version VERSION = new Version(1, 3, 3, true);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);

Expand Down
34 changes: 25 additions & 9 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package seedu.address.model.util;

import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Optional;
Expand All @@ -11,7 +12,12 @@
import seedu.address.model.person.Name;
import seedu.address.model.person.Person;
import seedu.address.model.person.Phone;
import seedu.address.model.person.Preference;
import seedu.address.model.person.UserType;
import seedu.address.model.property.Price;
import seedu.address.model.property.Property;
import seedu.address.model.property.Region;
import seedu.address.model.property.Size;

/**
* Contains utility methods for populating {@code AddressBook} with sample data.
Expand All @@ -20,22 +26,32 @@ public class SampleDataUtil {
public static Person[] getSamplePersons() {
return new Person[]{
new Person(new Name("Alex Yeoh"), new Phone("87438807"), new Email("[email protected]"),
new Address("Blk 30 Geylang Street 29, #06-40"), new HashSet<>(), Optional.empty(),
new UserType("buyer"), new LinkedHashSet<>()),
new Address("Blk 30 Geylang Street 29, #06-40"), new HashSet<>(),
Optional.of(new Preference(Region.WEST, Size.ONE_ROOM, new Price("$100000"), new Price("$200000"))),
new UserType("buyer"), new LinkedHashSet<>()),
new Person(new Name("Bernice Yu"), new Phone("99272758"), new Email("[email protected]"),
new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18"), new HashSet<>(), Optional.empty(),
new UserType("seller"), new LinkedHashSet<>()),
new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
new HashSet<>(Arrays.asList(new Property(Region.SOUTH,
new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
Size.FOUR_ROOM, new Price ("$500000")))), Optional.empty(),
new UserType("seller"), new LinkedHashSet<>()),
new Person(new Name("Charlotte Oliveiro"), new Phone("93210283"), new Email("[email protected]"),
new Address("Blk 11 Ang Mo Kio Street 74, #11-04"), new HashSet<>(), Optional.empty(),
new Address("Blk 11 Ang Mo Kio Street 74, #11-04"), new HashSet<>(),
Optional.of(new Preference(Region.EAST, Size.TWO_ROOM, new Price("$100000"), new Price("$150000"))),
new UserType("buyer"), new LinkedHashSet<>()),
new Person(new Name("David Li"), new Phone("91031282"), new Email("[email protected]"),
new Address("Blk 436 Serangoon Gardens Street 26, #16-43"), new HashSet<>(), Optional.empty(),
new UserType("seller"), new LinkedHashSet<>()),
new Address("Blk 436 Serangoon Gardens Street 26, #16-43"),
new HashSet<>(Arrays.asList(new Property(Region.SOUTH,
new Address("Blk 436 Serangoon Gardens Street 26, #16-43"),
Size.FOUR_ROOM, new Price ("$500000")))), Optional.empty(),
new UserType("seller"), new LinkedHashSet<>()),
new Person(new Name("Irfan Ibrahim"), new Phone("92492021"), new Email("[email protected]"),
new Address("Blk 47 Tampines Street 20, #17-35"), new HashSet<>(), Optional.empty(),
new Address("Blk 47 Tampines Street 20, #17-35"), new HashSet<>(),
Optional.of(new Preference(Region.WEST, Size.TWO_ROOM, new Price("$50000"), new Price("$100000"))),
new UserType("buyer"), new LinkedHashSet<>()),
new Person(new Name("Roy Balakrishnan"), new Phone("92624417"), new Email("[email protected]"),
new Address("Blk 45 Aljunied Street 85, #11-31"), new HashSet<>(), Optional.empty(),
new Address("Blk 45 Aljunied Street 85, #11-31"), new HashSet<>(),
Optional.of(new Preference(Region.SOUTH, Size.ONE_ROOM, new Price("$40000"), new Price("$90000"))),
new UserType("buyer"), new LinkedHashSet<>())
};
}
Expand Down

0 comments on commit 7963fe5

Please sign in to comment.