forked from nus-cs2103-AY2324S1/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 branch 'master' into 503-update-dg-implementation-jy
- Loading branch information
Showing
17 changed files
with
553 additions
and
492 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -42,19 +42,19 @@ public class CustomerEditCommand extends CustomerCommand { | |
public static final String COMMAND_WORD = CustomerCommand.COMMAND_WORD + " " + "edit"; | ||
|
||
/** | ||
* The text displayed to show what the command does and how to use it. | ||
* The text displayed to show what the command does and how to use it. | ||
*/ | ||
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Edits the details of the person identified " | ||
+ "by the customer ID used in the displayed person list. " | ||
+ "Existing values will be overwritten by the input values.\n\n" | ||
+ "Parameters: CUSTOMER_ID (must be a positive integer) " | ||
+ "[" + PREFIX_NAME + " NAME] " | ||
+ "[" + PREFIX_PHONE + " PHONE] " | ||
+ "[" + PREFIX_EMAIL + " EMAIL] " | ||
+ "[" + PREFIX_ADDRESS + " ADDRESS]\n\n" | ||
+ "Example: " + COMMAND_WORD + " 1 " | ||
+ PREFIX_PHONE + " 91234567 " | ||
+ PREFIX_EMAIL + " [email protected]"; | ||
+ "by the customer ID used in the displayed person list. " | ||
+ "Existing values will be overwritten by the input values.\n\n" | ||
+ "Parameters: CUSTOMER_ID (must be a positive integer and less than 2147483648) " | ||
+ "[" + PREFIX_NAME + " NAME] " | ||
+ "[" + PREFIX_PHONE + " PHONE] " | ||
+ "[" + PREFIX_EMAIL + " EMAIL] " | ||
+ "[" + PREFIX_ADDRESS + " ADDRESS]\n\n" | ||
+ "Example: " + COMMAND_WORD + " 1 " | ||
+ PREFIX_PHONE + " 91234567 " | ||
+ PREFIX_EMAIL + " [email protected]"; | ||
|
||
/** | ||
* The text to the message displayed when the Customer is edited successfuly. | ||
|
@@ -73,6 +73,7 @@ public class CustomerEditCommand extends CustomerCommand { | |
|
||
/** | ||
* Creates a CustomerEditCommand to edit the customers. | ||
* | ||
* @param targetIndex of the person in the filtered person list to edit | ||
* @param customerEditDescriptor details to edit the person with | ||
*/ | ||
|
@@ -86,6 +87,7 @@ public CustomerEditCommand(Index targetIndex, CustomerEditDescriptor customerEdi | |
|
||
/** | ||
* Executes the CustomerEditCommand. | ||
* | ||
* @param model {@code Model} which the command should operate on. | ||
* @return The command result along with the message to be displayed to the user. | ||
* @throws CommandException If the user is not logged in or if the customer does not exist or if the edited | ||
|
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
Oops, something went wrong.