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

Implement ContactList to encapsulate Contact related objects and methods #228

Merged
merged 10 commits into from
Oct 17, 2020

Conversation

jonasngs
Copy link
Collaborator

Fixes #225

This PR implements a ContactList class to encapsulate Contact related objects and methods. Additionally, this new ContactList object has been added as a field of the ModelManager class which will be responsible for managing the ContactList class and all methods that relate to ContactList.

Junit tests that test ModelManager have been temporarily commented out.

@jonasngs jonasngs added type.Task Something that needs to be done, but not a story, bug, or an epic. priority.High Must do type.code A piece of code to be used labels Oct 15, 2020
@jonasngs jonasngs added this to the V1.3 milestone Oct 15, 2020
@jonasngs jonasngs self-assigned this Oct 15, 2020
Copy link
Collaborator

@michael-setia michael-setia left a comment

Choose a reason for hiding this comment

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

The implementation is good, consistent, and it is also similar to the current ModuleList. Aside from conflict with ModuleListTest class, looks good for merging 😃


contactList.setContact(target, editedContact);
}

//=========== Filtered Module List Accessors =============================================================
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can create sections for the accessor methods for each type of list? Since there are going to be todolist and possibly schedule list also. Just to make things more organized 😃

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes this will be done!

setContact(newData.getContactList());
}

//// person-level operations
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe can change "person" to "contact"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes will change it.

@jonasngs jonasngs merged commit b8e5f08 into AY2021S1-CS2103T-F12-3:master Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must do type.code A piece of code to be used type.Task Something that needs to be done, but not a story, bug, or an epic.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement ContactList class to encapsulate all Contact related objects and methods
2 participants