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

Refactor JsonAdaptedPerson #109

Open
iskandarzulkarnaien opened this issue Oct 14, 2019 · 2 comments
Open

Refactor JsonAdaptedPerson #109

iskandarzulkarnaien opened this issue Oct 14, 2019 · 2 comments

Comments

@iskandarzulkarnaien
Copy link

JsonAdaptedPerson class is currently bloated with attributes from all types of persons. As a result, it represents, for example, a doctor by setting all its non-doctor related attributes such as age, bloodType, etc to empty strings.

Proposed refactoring is to have JsonAdaptedPerson be an abstract class with JsonAdaptedDoctor/Patient/etc extending it. Naturally, this issue should be fixed after #102 .

Issue up for discussion.

@iskandarzulkarnaien
Copy link
Author

Related to and should be PR in together with #111

@C-likethis123
Copy link

Hi guys, I will take on this issue.

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

No branches or pull requests

2 participants