forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from tsulim/48-update-with-module
Update code to use `Module` attribute
- Loading branch information
Showing
33 changed files
with
380 additions
and
137 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
import static java.util.Objects.requireNonNull; | ||
import static staffconnect.logic.parser.CliSyntax.PREFIX_EMAIL; | ||
import static staffconnect.logic.parser.CliSyntax.PREFIX_MODULE; | ||
import static staffconnect.logic.parser.CliSyntax.PREFIX_NAME; | ||
import static staffconnect.logic.parser.CliSyntax.PREFIX_PHONE; | ||
import static staffconnect.logic.parser.CliSyntax.PREFIX_TAG; | ||
|
@@ -26,12 +27,14 @@ public class AddCommand extends Command { | |
+ PREFIX_PHONE + "PHONE " | ||
+ PREFIX_EMAIL + "EMAIL " | ||
+ PREFIX_VENUE + "VENUE " | ||
+ PREFIX_MODULE + "MODULE " | ||
+ "[" + PREFIX_TAG + "TAG]...\n" | ||
+ "Example: " + COMMAND_WORD + " " | ||
+ PREFIX_NAME + "John Doe " | ||
+ PREFIX_PHONE + "98765432 " | ||
+ PREFIX_EMAIL + "[email protected] " | ||
+ PREFIX_VENUE + "311, Clementi Ave 2, #02-25 " | ||
+ PREFIX_MODULE + "CS2103 " | ||
+ PREFIX_TAG + "friends " | ||
+ PREFIX_TAG + "owesMoney"; | ||
|
||
|
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
import staffconnect.model.ReadOnlyStaffBook; | ||
import staffconnect.model.StaffBook; | ||
import staffconnect.model.person.Email; | ||
import staffconnect.model.person.Module; | ||
import staffconnect.model.person.Name; | ||
import staffconnect.model.person.Person; | ||
import staffconnect.model.person.Phone; | ||
|
@@ -20,23 +21,23 @@ public class SampleDataUtil { | |
public static Person[] getSamplePersons() { | ||
return new Person[] { | ||
new Person(new Name("Alex Yeoh"), new Phone("87438807"), new Email("[email protected]"), | ||
new Venue("Blk 30 Geylang Street 29, #06-40"), | ||
getTagSet("friends")), | ||
new Venue("Blk 30 Geylang Street 29, #06-40"), new Module("CS1101S"), | ||
getTagSet("professor")), | ||
new Person(new Name("Bernice Yu"), new Phone("99272758"), new Email("[email protected]"), | ||
new Venue("Blk 30 Lorong 3 Serangoon Gardens, #07-18"), | ||
getTagSet("colleagues", "friends")), | ||
new Venue("Blk 30 Lorong 3 Serangoon Gardens, #07-18"), new Module("CS1231S"), | ||
getTagSet("tutor", "friends")), | ||
new Person(new Name("Charlotte Oliveiro"), new Phone("93210283"), new Email("[email protected]"), | ||
new Venue("Blk 11 Ang Mo Kio Street 74, #11-04"), | ||
getTagSet("neighbours")), | ||
new Venue("Blk 11 Ang Mo Kio Street 74, #11-04"), new Module("CS2030S"), | ||
getTagSet("professor")), | ||
new Person(new Name("David Li"), new Phone("91031282"), new Email("[email protected]"), | ||
new Venue("Blk 436 Serangoon Gardens Street 26, #16-43"), | ||
getTagSet("family")), | ||
new Venue("Blk 436 Serangoon Gardens Street 26, #16-43"), new Module("CS2040S"), | ||
getTagSet("professor")), | ||
new Person(new Name("Irfan Ibrahim"), new Phone("92492021"), new Email("[email protected]"), | ||
new Venue("Blk 47 Tampines Street 20, #17-35"), | ||
getTagSet("classmates")), | ||
new Venue("Blk 47 Tampines Street 20, #17-35"), new Module("CS2100"), | ||
getTagSet("tutor")), | ||
new Person(new Name("Roy Balakrishnan"), new Phone("92624417"), new Email("[email protected]"), | ||
new Venue("Blk 45 Aljunied Street 85, #11-31"), | ||
getTagSet("colleagues")) | ||
new Venue("Blk 45 Aljunied Street 85, #11-31"), new Module("CS2101"), | ||
getTagSet("professor")) | ||
}; | ||
} | ||
|
||
|
Oops, something went wrong.