java.lang.Object
com.example.wellbeing_project.universal.AppUser
Represents a user in the application.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the duration in minutes.static String
getEmail()
Gets the user's email.int
Gets the end time.static String
getName()
Gets the user's name.static String
Gets the user's password.Gets the report date.int
Gets the report ID.int
Gets the start time.Gets the time name.int
Gets the timer ID.int
Gets the usage ID.static int
Gets the user's IDvoid
setDurationMinutes
(int durationMinutes) Sets the duration in minutes.void
Sets the user's email.void
setEndTime
(int endTime) Sets the end time.void
Sets the user's name.void
setPassword
(String password) Sets the user's password.void
setReportDate
(String reportDate) Sets the report date.void
setReportId
(int reportId) Sets the report ID.void
setStartTime
(int startTime) Sets the start time.void
setTimeName
(String timeName) Sets the time name.void
setTimerId
(int timerId) Sets the timer ID.void
setUsageId
(int usageId) Sets the usage ID.void
setUserId
(int userId) Sets the user's ID.
-
Constructor Details
-
AppUser
Contracts a new AppUser with the specified name,email and password.- Parameters:
name
- - user's nameemail
- - user's emailpassword
- - 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
Gets the user's name.- Returns:
- the user's name
-
setName
Sets the user's name.- Parameters:
name
- the user's name
-
getEmail
Gets the user's email.- Returns:
- the user's email
-
setEmail
Sets the user's email.- Parameters:
email
- the user's email
-
getPassword
Gets the user's password.- Returns:
- the user's password
-
setPassword
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
Gets the report date.- Returns:
- the report date
-
setReportDate
Sets the report date.- Parameters:
reportDate
- the report date
-
getTimeName
Gets the time name.- Returns:
- the time name
-
setTimeName
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
-