-
Notifications
You must be signed in to change notification settings - Fork 7
Add fee #141
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 fee #141
Conversation
@@ -46,6 +46,8 @@ public static String format(Student student) { | |||
.append(student.getAddress()) | |||
.append("; Tags: "); | |||
student.getTags().forEach(builder::append); | |||
builder.append("; fee ").append(student.getFee()); |
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.
please add this to previous line
@@ -96,13 +101,21 @@ public StudentBuilder withEmail(String email) { | |||
/** | |||
* Sets the {@code hasPaid} of the {@code Student} that we are building. | |||
*/ | |||
public StudentBuilder withhasPaid(boolean hasPaid) { | |||
public StudentBuilder withHasPaid(boolean hasPaid) { |
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.
Good use of convention
@@ -31,6 +31,7 @@ | |||
<Label fx:id="phone" styleClass="cell_small_label" text="\$phone" /> | |||
<Label fx:id="address" styleClass="cell_small_label" text="\$address" /> | |||
<Label fx:id="email" styleClass="cell_small_label" text="\$email" /> | |||
<Label fx:id="fee" styleClass="cell_small_label" text="\$fee" /> |
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.
Good Work updating the UI
|
||
/** | ||
* Every field must be present and not null except isPresent. | ||
* Every field must be present and not null except isPresent. I suggest |
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.
please deprecate this constructor
throw new IllegalValueException(Fee.MESSAGE_CONSTRAINTS); | ||
} | ||
Fee modelFee = new Fee(fee); | ||
return new Student(modelName, modelPhone, modelEmail, modelAddress, modelTags, modelFee); |
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.
Good work modifying the model
afc02ea
into
AY2425S1-CS2103T-W09-2:master
Add fee, need to change a lot of things 😢