Skip to content
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

Merged

Conversation

Stefan-Jiang
Copy link

@Stefan-Jiang Stefan-Jiang commented Oct 4, 2020

Create and integrate a new attribute TIMES into the system.
Fixed #72 #73

@richardcom richardcom merged commit 66de00d into AY2021S1-CS2103-F09-3:master Oct 6, 2020
@Stefan-Jiang Stefan-Jiang linked an issue Oct 11, 2020 that may be closed by this pull request
@HCY123902 HCY123902 self-requested a review November 3, 2020 07:35
@HCY123902
Copy link

LGTM

Copy link

@HCY123902 HCY123902 left a 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;

Copy link

@HCY123902 HCY123902 Nov 3, 2020

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.

Copy link

@HCY123902 HCY123902 left a 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": "",

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 {

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;

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Times attribute
3 participants