Class User

  • All Implemented Interfaces:
    de.hirola.kintojava.model.KintoModel

    public class User
    extends PersistentObject
    Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Der Nutzer der App, also der Läufer.
    Since:
    1.1.1
    Author:
    Michael Schmidt (Hirola)
    • Constructor Detail

      • User

        public User()
        Default constructor for reflection.
    • Method Detail

      • getFirstName

        public String getFirstName()
        Get the first name of the user.
        Returns:
        The first name of the user
      • setFirstName

        public void setFirstName​(String firstName)
        Set the first name of the user.
        Parameters:
        firstName - of the user
      • getLastName

        public String getLastName()
        Get the last name of the user.
        Returns:
        The last name of the user
      • setLastName

        public void setLastName​(String lastName)
        Set the last name of the user.
        Parameters:
        lastName - of the user
      • getEmailAddress

        public String getEmailAddress()
        Get the email address of the user.
        Returns:
        The first name of the user
      • setEmailAddress

        public void setEmailAddress​(String emailAddress)
        Set the email address of the user. The address will be not validate.
        Parameters:
        emailAddress - of the user
      • getBirthday

        public java.time.LocalDate getBirthday()
        Get the birthday of the user. The year ist need to calculate the max pulse.
        Returns:
        The birthday of the user
      • setBirthday

        public void setBirthday​(java.time.LocalDate birthday)
        Set the birthday of the user.
        Parameters:
        birthday - of the user
      • getGender

        public int getGender()
        Get the gender of the user.
        Returns:
        The gender of the user
        See Also:
        Global
      • setGender

        public void setGender​(int gender)
        Set the gender of the user. The gender ist need to calculate the max pulse.
        Parameters:
        gender - of the user
      • getTrainingLevel

        public int getTrainingLevel()
        Get the training level of user.
        Returns:
        The training level of the user
        See Also:
        Global
      • setTrainingLevel

        public void setTrainingLevel​(int trainingLevel)
        Set the training level of the user.
        Parameters:
        trainingLevel - of the user
      • getMaxPulse

        public int getMaxPulse()
        Get the max pulse of user.
        Returns:
        The max pulse of the user
      • setMaxPulse

        public void setMaxPulse​(int maxPulse)
        Set the max pulse of the user.
        Parameters:
        maxPulse - of the user
      • getActiveRunningPlan

        public RunningPlan getActiveRunningPlan()
        Get the first name of user.
        Returns:
        The first name of the user
      • setActiveRunningPlan

        public void setActiveRunningPlan​(RunningPlan activeRunningPlan)
        Set the active training plan.
        Parameters:
        activeRunningPlan - wich the user want to train now
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class de.hirola.kintojava.model.KintoObject
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class de.hirola.kintojava.model.KintoObject