java.lang.Object
com.example.wellbeing_project.universal.AppUser

public class AppUser extends Object
Represents a user in the application.
  • Constructor Details

    • AppUser

      public AppUser(String name, String email, String password)
      Contracts a new AppUser with the specified name,email and password.
      Parameters:
      name - - user's name
      email - - user's email
      password - - user's password
  • Method Details

    • getUserId

      public static int getUserId()
      Gets the user's ID
      Returns:
      The user's ID.
    • setUserId

      public void setUserId(int userId)
      Sets the user's ID.
      Parameters:
      userId - The unique user ID.
    • getName

      public static String getName()
      Gets the user's name.
      Returns:
      the user's name
    • setName

      public void setName(String name)
      Sets the user's name.
      Parameters:
      name - the user's name
    • getEmail

      public static String getEmail()
      Gets the user's email.
      Returns:
      the user's email
    • setEmail

      public void setEmail(String email)
      Sets the user's email.
      Parameters:
      email - the user's email
    • getPassword

      public static String getPassword()
      Gets the user's password.
      Returns:
      the user's password
    • setPassword

      public void setPassword(String password)
      Sets the user's password.
      Parameters:
      password - the user's password
    • getReportId

      public int getReportId()
      Gets the report ID.
      Returns:
      the report ID
    • setReportId

      public void setReportId(int reportId)
      Sets the report ID.
      Parameters:
      reportId - the report ID
    • getTimerId

      public int getTimerId()
      Gets the timer ID.
      Returns:
      the timer ID
    • setTimerId

      public void setTimerId(int timerId)
      Sets the timer ID.
      Parameters:
      timerId - the timer ID
    • getUsageId

      public int getUsageId()
      Gets the usage ID.
      Returns:
      the usage ID
    • setUsageId

      public void setUsageId(int usageId)
      Sets the usage ID.
      Parameters:
      usageId - the usage ID
    • getReportDate

      public String getReportDate()
      Gets the report date.
      Returns:
      the report date
    • setReportDate

      public void setReportDate(String reportDate)
      Sets the report date.
      Parameters:
      reportDate - the report date
    • getTimeName

      public String getTimeName()
      Gets the time name.
      Returns:
      the time name
    • setTimeName

      public void setTimeName(String timeName)
      Sets the time name.
      Parameters:
      timeName - the time name
    • getDurationMinutes

      public int getDurationMinutes()
      Gets the duration in minutes.
      Returns:
      the duration in minutes
    • setDurationMinutes

      public void setDurationMinutes(int durationMinutes)
      Sets the duration in minutes.
      Parameters:
      durationMinutes - the duration in minutes
    • getStartTime

      public int getStartTime()
      Gets the start time.
      Returns:
      the start time
    • setStartTime

      public void setStartTime(int startTime)
      Sets the start time.
      Parameters:
      startTime - the start time
    • getEndTime

      public int getEndTime()
      Gets the end time.
      Returns:
      the end time
    • setEndTime

      public void setEndTime(int endTime)
      Sets the end time.
      Parameters:
      endTime - the end time