-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Subject to Lesson.java #111
Add Subject to Lesson.java #111
Conversation
# Conflicts: # src/main/java/seedu/address/logic/parser/CliSyntax.java
@@ -27,7 +29,7 @@ public class AddLessonCommand extends Command { | |||
+ ": Adds a lesson taught by the tutor to the tutee identified by their respective index numbers " | |||
+ "in the displayed persons list.\n" | |||
+ "Parameters: TUTORINDEX TUTEEINDEX (must be positive integers)\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the command description and format (and use TUTOR_INDEX etc)
@@ -26,23 +28,35 @@ public class DeleteLessonCommand extends Command { | |||
+ ": Deletes the lesson between a tutor and tutee, identified by their respective index numbers " | |||
+ "in the displayed person list.\n" | |||
+ "Parameters: TUTORINDEX TUTEEINDEX (must be positive integers)\n" | |||
+ "Example: " + COMMAND_WORD + " 1 3"; | |||
+ "Example: " + COMMAND_WORD + " 1 3" + " " + PREFIX_SUBJECT + "Math"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the command description, parameters and JavaDoc
/** | ||
* Creates a DeleteLesson Command to delete the Lesson asssociated with | ||
* the specified {@code Tutor} and {@code Tutee}. | ||
* @param tutorIndex | ||
* @param tuteeIndex | ||
*/ | ||
public DeleteLessonCommand(Index tutorIndex, Index tuteeIndex) { | ||
public DeleteLessonCommand(Index tutorIndex, Index tuteeIndex, Subject subject) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the JavaDoc
* @throws ParseException if the specified index is invalid (not non-zero unsigned integer) | ||
* or if the format was wrong. | ||
*/ | ||
public static Index[] parseIndexes(String args) throws ParseException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove parseIndices if not used anymore
fixes #104
fixes #105
TODO:
The DeleteLessonCommand.java class is not updated with the discussed command format