Skip to content

Commit

Permalink
Merge pull request #177 from liauzhanyi/load-sample-command
Browse files Browse the repository at this point in the history
Enhance seed command
  • Loading branch information
rayray39 authored Nov 5, 2024
2 parents 216191a + 14debab commit 75fe502
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ Adds dummy data to the address book.

Format: `seed`

**NOTE:** There are 6 contacts in the dummy data. `seed` works in a way that would be similar to if the user were to iteratively issue `add` command on the 6 person. This means that,

- `seed` will add them to the contact list if they are not presently inside.
- `seed` does not clear or reset the list.
- If your exisitng contact list has a person with the same name and phone number, it will **not** be overwritten.

### Exiting the program : `exit`

Exits the program.
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,38 @@ public static Person[] getSamplePersons() {
return new Person[] {
new Person(new Name("Alex Yeoh"), new Phone("87438807"),
Optional.of(new Email("[email protected]")),
Optional.of(new Address("Blk 30 Geylang Street 29, #06-40")), getTagSet("friends"),
Optional.of(new Address("Blk 30 Geylang Street 29, #06-40")), getTagSet("elderly"),
Optional.of(new DateOfLastVisit("01-01-2024")),
Optional.of(new EmergencyContact("91234567")),
new Remark("")),
new Person(new Name("Bernice Yu"), new Phone("99272758"),
Optional.of(new Email("[email protected]")),
Optional.of(new Address("Blk 30 Lorong 3 Serangoon Gardens, #07-18")),
getTagSet("colleagues", "friends"), Optional.of(new DateOfLastVisit("02-02-2024")),
getTagSet("single mother", "2 kids"), Optional.of(new DateOfLastVisit("02-02-2024")),
Optional.of(new EmergencyContact("91234567")),
new Remark("Lives in HDB and has 3 children")),
new Remark("Follow up on children's education progress")),
new Person(new Name("Charlotte Oliveiro"), new Phone("93210283"),
Optional.of(new Email("[email protected]")),
Optional.of(new Address("Blk 11 Ang Mo Kio Street 74, #11-04")),
getTagSet("neighbours"), Optional.of(new DateOfLastVisit("03-03-2024")),
getTagSet("low income"), Optional.of(new DateOfLastVisit("03-03-2024")),
Optional.of(new EmergencyContact("91234567")),
new Remark("")),
new Person(new Name("David Li"), new Phone("91031282"),
Optional.of(new Email("[email protected]")),
Optional.of(new Address("Blk 436 Serangoon Gardens Street 26, #16-43")),
getTagSet("family"), Optional.of(new DateOfLastVisit("04-04-2024")),
getTagSet("disability"), Optional.of(new DateOfLastVisit("04-04-2024")),
Optional.of(new EmergencyContact("98765432")),
new Remark("Has no children")),
new Remark("Look for job opportunities")),
new Person(new Name("Irfan Ibrahim"), new Phone("92492021"),
Optional.of(new Email("[email protected]")),
Optional.of(new Address("Blk 47 Tampines Street 20, #17-35")),
getTagSet("classmates"), Optional.of(new DateOfLastVisit("05-05-2024")),
getTagSet("ex-convict"), Optional.of(new DateOfLastVisit("05-05-2024")),
Optional.of(new EmergencyContact("91234567")),
new Remark("Has no family")),
new Remark("Violent tendencies")),
new Person(new Name("Roy Balakrishnan"), new Phone("92624417"),
Optional.of(new Email("[email protected]")),
Optional.of(new Address("Blk 45 Aljunied Street 85, #11-31")),
getTagSet("colleagues"), Optional.of(new DateOfLastVisit("06-06-2024")),
getTagSet("elderly"), Optional.of(new DateOfLastVisit("06-06-2024")),
Optional.of(new EmergencyContact("92492021")), new Remark(""))};
}

Expand Down

0 comments on commit 75fe502

Please sign in to comment.