Package src.models

Class user

java.lang.Object
src.models.user

public class user extends Object
User Model
  • 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

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getFirstname

      public String getFirstname()
    • setFirstname

      public void setFirstname(String firstname)
    • getLastname

      public String getLastname()
    • setLastname

      public void setLastname(String lastname)
    • getGender

      public String getGender()
    • setGender

      public void setGender(String gender)
    • getDateofbirth

      public LocalDate getDateofbirth()
    • setDateofbirth

      public void setDateofbirth(LocalDate dateofbirth)
    • getStreet

      public String getStreet()
    • setStreet

      public void setStreet(String street)
    • getHousenumber

      public String getHousenumber()
    • setHousenumber

      public void setHousenumber(String housenumber)
    • getCity

      public String getCity()
    • setCity

      public void setCity(String city)
    • getZipcode

      public String getZipcode()
    • setZipcode

      public void setZipcode(String zipcode)
    • getLat

      public double getLat()
    • setLat

      public void setLat(double lat)
    • getLng

      public double getLng()
    • setLng

      public void setLng(double lng)
    • getHealthinformation

      public String getHealthinformation()
    • setHealthinformation

      public void setHealthinformation(String healthinformation)
    • getInsurancename

      public String getInsurancename()
    • setInsurancename

      public void setInsurancename(String insurancename)
    • getInsurancetype

      public String getInsurancetype()
    • setInsurancetype

      public void setInsurancetype(String insurancetype)
    • isAdmin

      public boolean isAdmin()
    • setAdmin

      public void setAdmin(boolean admin)
    • getAppointments

      public ArrayList<appointment> getAppointments()
    • setAppointments

      public void setAppointments(ArrayList<appointment> appointments)
    • addAppointment

      public void addAppointment(appointment appointment)
      add an appointment at the right position(the appointments are orderd by date and time)
      Parameters:
      appointment -
    • removeAppointment

      public void removeAppointment(appointment appointment)
      remove an appointment
      Parameters:
      appointment -