Package com.coachconnect.model
Class User
java.lang.Object
com.coachconnect.model.User
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetEmail()getId()getName()getRole()booleanChecks if the user has a specific role.booleanisCoach()Checks if the user is a coach.voidsetCreatedAt(long createdAt) voidvoidvoidvoidvoidsetPosition(String position) voidsetProfilePic(String profilePic) void
-
Constructor Details
-
User
public User()
-
-
Method Details
-
getId
-
setId
-
getEmail
-
setEmail
-
getName
-
setName
-
getProfilePic
-
setProfilePic
-
getRole
-
setRole
-
getCreatedAt
public long getCreatedAt() -
setCreatedAt
public void setCreatedAt(long createdAt) -
hasRole
Checks if the user has a specific role.- Parameters:
role- The role to check- Returns:
- true if the user has the role, false otherwise
-
isCoach
public boolean isCoach()Checks if the user is a coach.- Returns:
- true if the user is a coach, false otherwise
-
getNumber
-
setNumber
-
getPosition
-
setPosition
-