forked from nus-cs2103-AY2324S1/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
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 nus-cs2103-AY2324S1#109 from jx124/fix-datetime-pa…
…rsing-bug Fix datetime parsing bug
- Loading branch information
Showing
22 changed files
with
116 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
import static java.util.Objects.requireNonNull; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_EMAIL; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_KEYMILESTONE; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_KEY_MILESTONE; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_MEETING_TIME; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME; | ||
import static seedu.address.logic.parser.CliSyntax.PREFIX_PHONE; | ||
|
@@ -28,14 +28,15 @@ public class AddLeadCommand extends Command { | |
+ PREFIX_PHONE + "PHONE " | ||
+ PREFIX_EMAIL + "EMAIL " | ||
+ PREFIX_ADDRESS + "ADDRESS " | ||
+ PREFIX_KEY_MILESTONE + "KEY_MILESTONE " | ||
+ PREFIX_MEETING_TIME + "MEETING_TIME " | ||
+ "[" + PREFIX_TAG + "TAG]...\n" | ||
+ "Example: " + COMMAND_WORD + " " | ||
+ PREFIX_NAME + "John Doe " | ||
+ PREFIX_PHONE + "98765432 " | ||
+ PREFIX_EMAIL + "[email protected] " | ||
+ PREFIX_ADDRESS + "311, Clementi Ave 2, #02-25 " | ||
+ PREFIX_KEYMILESTONE + "2023-10-20 " | ||
+ PREFIX_KEY_MILESTONE + "01/12/2023 " | ||
+ PREFIX_MEETING_TIME + "10/10/2023 14:30 " | ||
+ PREFIX_TAG + "classmate"; | ||
|
||
|
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 |
---|---|---|
|
@@ -37,16 +37,16 @@ public static Person[] getSamplePersons() { | |
getTagSet("neighbours")), | ||
new Lead(new Name("David Li"), new Phone("91031282"), new Email("[email protected]"), | ||
new Address("Blk 436 Serangoon Gardens Street 26, #16-43"), | ||
new KeyMilestone("2022-12-01"), Optional.of(new MeetingTime("10/10/2023 14:30")), | ||
new KeyMilestone("01/12/2023"), Optional.of(new MeetingTime("10/10/2023 14:30")), | ||
getTagSet("family")), | ||
new Lead(new Name("Irfan Ibrahim"), new Phone("92492021"), new Email("[email protected]"), | ||
new Address("Blk 47 Tampines Street 20, #17-35"), | ||
new KeyMilestone("2022-12-01"), | ||
new KeyMilestone("01/12/2023"), | ||
Optional.of(new MeetingTime("10/10/2023 14:30")), | ||
getTagSet("classmates")), | ||
new Lead(new Name("Roy Balakrishnan"), new Phone("92624417"), new Email("[email protected]"), | ||
new Address("Blk 45 Aljunied Street 85, #11-31"), | ||
new KeyMilestone("2022-12-01"), Optional.of(new MeetingTime("10/10/2023 14:30")), | ||
new KeyMilestone("01/12/2023"), Optional.of(new MeetingTime("10/10/2023 14:30")), | ||
getTagSet("colleagues")) | ||
}; | ||
} | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"email": "[email protected]", | ||
"type": "lead", | ||
"address": "123, Jurong West Ave 6, #08-111", | ||
"keyMilestone": "2022-12-01", | ||
"keyMilestone": "01/12/2023", | ||
"meetingTime" : "25/10/2023 11:21", | ||
"tags": [ "Client", "friends" ] | ||
}, { | ||
|
@@ -14,7 +14,7 @@ | |
"email": "[email protected]", | ||
"type": "lead", | ||
"address": "4th street", | ||
"keyMilestone": "2022-12-01", | ||
"keyMilestone": "01/12/2023", | ||
"meetingTime" : "25/10/2023 11:21", | ||
"tags": [ "Client" ] | ||
} ] | ||
|
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 |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
"phone" : "9482224", | ||
"email" : "[email protected]", | ||
"type": "lead", | ||
"keyMilestone": "2022-12-01", | ||
"keyMilestone": "01/12/2023", | ||
"address" : "michegan ave", | ||
"meetingTime" : null, | ||
"tags" : [] | ||
|
@@ -50,7 +50,7 @@ | |
"phone" : "9482427", | ||
"email" : "[email protected]", | ||
"type": "lead", | ||
"keyMilestone": "2022-12-01", | ||
"keyMilestone": "01/12/2023", | ||
"address" : "little tokyo", | ||
"meetingTime" : null, | ||
"tags" : [] | ||
|
@@ -59,7 +59,7 @@ | |
"phone" : "9482442", | ||
"email" : "[email protected]", | ||
"type": "lead", | ||
"keyMilestone": "2022-12-01", | ||
"keyMilestone": "01/12/2023", | ||
"address" : "4th street", | ||
"meetingTime" : null, | ||
"tags" : [] | ||
|
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
Oops, something went wrong.