-
Notifications
You must be signed in to change notification settings - Fork 6
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 times command to the project #73
Add times command to the project #73
Conversation
LGTM |
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.
LGTM
import seedu.address.model.Model; | ||
import seedu.address.model.person.Person; | ||
import seedu.address.model.person.Times; | ||
|
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.
LGTM. The concept of polymorphism and the command pattern seems to be present.
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.
LGTM
@@ -5,42 +5,49 @@ | |||
"phone" : "94351253", | |||
"email" : "alice@example.com", | |||
"address" : "123, Jurong West Ave 6, #08-111", | |||
"times": "", |
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.
Maybe some real time numbers can be added instead of giving an empty value.
import org.junit.jupiter.api.Test; | ||
|
||
public class TimesTest { | ||
|
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.
There can also be some check about the valid time number string.
*/ | ||
public Times(String times) { | ||
requireNonNull(times); | ||
value = times; |
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.
Maybe there can also be an upper bound for the number of times that a book can be borrowed.
Create and integrate a new attribute TIMES into the system.
Fixed #72 #73