Class User

java.lang.Object
com.coachconnect.model.User

public class User extends Object
  • Constructor Details

    • User

      public User()
  • Method Details

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getEmail

      public String getEmail()
    • setEmail

      public void setEmail(String email)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getProfilePic

      public String getProfilePic()
    • setProfilePic

      public void setProfilePic(String profilePic)
    • getRole

      public UserRole getRole()
    • setRole

      public void setRole(UserRole role)
    • getCreatedAt

      public long getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(long createdAt)
    • hasRole

      public boolean hasRole(UserRole role)
      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

      public Integer getNumber()
    • setNumber

      public void setNumber(Integer number)
    • getPosition

      public String getPosition()
    • setPosition

      public void setPosition(String position)