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

[W5.11][F10-3] Ong Wee Keong #177

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

ongweekeong
Copy link

Edited restrictions to 'add' command:

  1. Persons with same name AND same phone number/email cannot be added to the address book.
  2. Persons with different name but same phone number AND email cannot be added to the address book.
  3. Persons with same name but different phone number AND email can be added to the address book.

iamputradanish and others added 21 commits September 6, 2018 14:39
…_command

Added confirm/cancel clear option to after clear command
Includes Clear/Cancel command prompt guide
added total command and edited user guide
@ongweekeong ongweekeong changed the title [W5.11][CS2113-AY1819S1-F10-3] Ong Wee Keong [W5.11][F10-3] Ong Wee Keong Sep 13, 2018
Copy link

@fanyiii fanyiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A sensible improvement for checking duplicate person. On a hindsight, will having the same phone OR email suffice as well? Also, remember to update the help command as well as the test cases to reflect the change.

&& other.getEmail().equals(this.getEmail())
|| (other.getName().equals(this.getName())
&& (other.getPhone().equals(this.getPhone())
|| other.getEmail().equals(this.getEmail()))));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement on the duplication checks!

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.

7 participants