-
Notifications
You must be signed in to change notification settings - Fork 0
/
StaffUser.java
44 lines (38 loc) · 1.44 KB
/
StaffUser.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import java.util.ArrayList;
import java.util.Date;
import java.util.UUID;
public class StaffUser extends User{
private ArrayList<Contact> emergencyContacts;
private Contact doctor;
public ArrayList<String> allergies;
private ArrayList<Medication> medication;
private Schedule schedule;
public StaffUser(String firstName, String lastName, int number, String email, String password, String dateOfBirth, UUID id, Contact doctor, ArrayList<Contact> emergencyContacts, ArrayList<Medication> medication, ArrayList<String> allergies) {
super(firstName, lastName, number, email, password, dateOfBirth, id);
this.doctor = doctor;
this.emergencyContacts = emergencyContacts;
this.medication = medication;
this.allergies = allergies;
}
public ArrayList<String> getAllAllergies(){
return this.allergies;
}
public ArrayList<Medication> getAllMedication(){
return this.medication;
}
public ArrayList<Contact> getEmergencyContact(){
return this.emergencyContacts;
}
public boolean checkAllergies(String allergy){
return false;
}
public void staffSchedule(StaffUser schedule){
this.schedule = schedule.getSchedule();
}
public Schedule getSchedule(){
return this.schedule;
}
public String toString(){
return emergencyContacts.toString() + allergies.toString() + medication.toString() + schedule;
}
}