Package src.models
Class user
java.lang.Object
src.models.user
User Model
-
Constructor Summary
ConstructorsConstructorDescriptionuser()
Constructor to create an empty useruser
(int id, String username, String password, String email, String firstname, String lastname, String gender, LocalDate dateofbirth, String street, String housenumber, String city, String zipcode, double lat, double lng, String healthinformation, String insurancename, String insurancetype, boolean admin) Constructor to create an user -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAppointment
(appointment appointment) add an appointment at the right position(the appointments are orderd by date and time)getCity()
getEmail()
int
getId()
Getter and Setter Methodsdouble
getLat()
double
getLng()
boolean
isAdmin()
void
removeAppointment
(appointment appointment) remove an appointmentvoid
setAdmin
(boolean admin) void
setAppointments
(ArrayList<appointment> appointments) void
void
setDateofbirth
(LocalDate dateofbirth) void
void
setFirstname
(String firstname) void
void
setHealthinformation
(String healthinformation) void
setHousenumber
(String housenumber) void
setId
(int id) void
setInsurancename
(String insurancename) void
setInsurancetype
(String insurancetype) void
setLastname
(String lastname) void
setLat
(double lat) void
setLng
(double lng) void
setPassword
(String password) void
void
setUsername
(String username) void
setZipcode
(String zipcode)
-
Constructor Details
-
user
public user()Constructor to create an empty user -
user
public user(int id, String username, String password, String email, String firstname, String lastname, String gender, LocalDate dateofbirth, String street, String housenumber, String city, String zipcode, double lat, double lng, String healthinformation, String insurancename, String insurancetype, boolean admin) Constructor to create an user- Parameters:
id
-username
-password
-email
-firstname
-lastname
-gender
-dateofbirth
-street
-housenumber
-city
-zipcode
-lat
-lng
-healthinformation
-insurancename
-insurancetype
-admin
-
-
-
Method Details
-
getId
public int getId()Getter and Setter Methods -
setId
public void setId(int id) -
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getEmail
-
setEmail
-
getFirstname
-
setFirstname
-
getLastname
-
setLastname
-
getGender
-
setGender
-
getDateofbirth
-
setDateofbirth
-
getStreet
-
setStreet
-
getHousenumber
-
setHousenumber
-
getCity
-
setCity
-
getZipcode
-
setZipcode
-
getLat
public double getLat() -
setLat
public void setLat(double lat) -
getLng
public double getLng() -
setLng
public void setLng(double lng) -
getHealthinformation
-
setHealthinformation
-
getInsurancename
-
setInsurancename
-
getInsurancetype
-
setInsurancetype
-
isAdmin
public boolean isAdmin() -
setAdmin
public void setAdmin(boolean admin) -
getAppointments
-
setAppointments
-
addAppointment
add an appointment at the right position(the appointments are orderd by date and time)- Parameters:
appointment
-
-
removeAppointment
remove an appointment- Parameters:
appointment
-
-