forked from AY2324S1-CS2103T-T12-4/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify records to fit with appointments
- Loading branch information
Showing
44 changed files
with
211 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...model/person/appointment/Appointment.java → ...ddress/model/appointment/Appointment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eptions/AppointmentNotFoundException.java → ...eptions/AppointmentNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ptions/DuplicateAppointmentException.java → ...ptions/DuplicateAppointmentException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
|
||
import seedu.address.model.AddressBook; | ||
import seedu.address.model.ReadOnlyAddressBook; | ||
import seedu.address.model.appointment.Appointment; | ||
import seedu.address.model.shared.DateTime; | ||
import seedu.address.model.appointment.UniqueAppointmentList; | ||
import seedu.address.model.person.Age; | ||
import seedu.address.model.person.Allergy; | ||
import seedu.address.model.person.BloodType; | ||
|
@@ -15,9 +18,6 @@ | |
import seedu.address.model.person.Name; | ||
import seedu.address.model.person.Person; | ||
import seedu.address.model.person.Phone; | ||
import seedu.address.model.person.appointment.Appointment; | ||
import seedu.address.model.person.appointment.DateTime; | ||
import seedu.address.model.person.appointment.UniqueAppointmentList; | ||
import seedu.address.model.record.Condition; | ||
import seedu.address.model.record.Record; | ||
import seedu.address.model.record.UniqueRecordList; | ||
|
@@ -31,22 +31,22 @@ public static Person[] getSamplePersons() { | |
return new Person[] { | ||
new Person(new Name("Alex Yeoh"), new Email("[email protected]"), new Phone("87438807"), | ||
new Gender("M"), new Age(12), new BloodType("A+"), getAllergySet("Peanuts"), | ||
true, getAppointmentList(new Appointment(new Name("Eye Exam"), new DateTime("01-01-2001 1200")))), | ||
getRecordList(new Record(new DateTime("01-01-2001 1200"), getConditionList("Fever"))), getAppointmentList(new Appointment(new Name("Eye Exam"), new DateTime("01-01-2001 1200"))), true), | ||
new Person(new Name("Bernice Yu"), new Email("[email protected]"), new Phone("99272758"), | ||
new Gender("F"), new Age(31), new BloodType("B+"), getAllergySet("Dust", "Peanuts"), | ||
false, new UniqueAppointmentList()), | ||
new UniqueRecordList(), new UniqueAppointmentList(), false), | ||
new Person(new Name("Charlotte Oliveiro"), new Email("[email protected]"), new Phone("93210283"), | ||
new Gender("F"), new Age(12), new BloodType("AB+"), getAllergySet("Dust"), | ||
false, new UniqueAppointmentList()), | ||
new UniqueRecordList(), new UniqueAppointmentList(), false), | ||
new Person(new Name("David Li"), new Email("[email protected]"), new Phone("91031282"), | ||
new Gender("M"), new Age(33), new BloodType("O-"), | ||
getAllergySet("Pollen"), false, new UniqueAppointmentList()), | ||
getAllergySet("Pollen"), new UniqueRecordList(), new UniqueAppointmentList(), false), | ||
new Person(new Name("Irfan Ibrahim"), new Email("[email protected]"), new Phone("92492021"), | ||
new Gender("M"), new Age(21), new BloodType("B-"), | ||
getAllergySet("Fur"), false, new UniqueAppointmentList()), | ||
getAllergySet("Fur"), new UniqueRecordList(), new UniqueAppointmentList(), false), | ||
new Person(new Name("Roy Balakrishnan"), new Email("[email protected]"), new Phone("92624417"), | ||
new Gender("M"), new Age(24), new BloodType("B+"), | ||
getAllergySet("Grass"), false, new UniqueAppointmentList()), | ||
getAllergySet("Grass"), new UniqueRecordList(), new UniqueAppointmentList(), false), | ||
}; | ||
} | ||
|
||
|
Oops, something went wrong.