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 TypeMethodDescriptionvoidaddAppointment(appointment appointment) add an appointment at the right position(the appointments are orderd by date and time)getCity()getEmail()intgetId()Getter and Setter MethodsdoublegetLat()doublegetLng()booleanisAdmin()voidremoveAppointment(appointment appointment) remove an appointmentvoidsetAdmin(boolean admin) voidsetAppointments(ArrayList<appointment> appointments) voidvoidsetDateofbirth(LocalDate dateofbirth) voidvoidsetFirstname(String firstname) voidvoidsetHealthinformation(String healthinformation) voidsetHousenumber(String housenumber) voidsetId(int id) voidsetInsurancename(String insurancename) voidsetInsurancetype(String insurancetype) voidsetLastname(String lastname) voidsetLat(double lat) voidsetLng(double lng) voidsetPassword(String password) voidvoidsetUsername(String username) voidsetZipcode(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-
-