Class UserDTO
- java.lang.Object
-
- idatt2106.group3.backend.Model.DTO.User.UserSuperclassDTO
-
- idatt2106.group3.backend.Model.DTO.User.UserDTO
-
public class UserDTO extends UserSuperclassDTO
DTO class for sending User information to frontend
-
-
Constructor Summary
Constructors Constructor Description UserDTO()
UserDTO(long userId, java.lang.String forename, java.lang.String surname, java.lang.String email, java.time.LocalDate dateOfBirth, Difficulty trainingLevel, java.lang.String role, java.lang.String profilePicture, boolean trusted)
UserDTO(User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProfilePicture()
java.lang.String
getRole()
long
getUserId()
boolean
isTrusted()
void
setProfilePicture(java.lang.String profilePicture)
void
setRole(java.lang.String role)
void
setTrusted(boolean trusted)
void
setUserId(long userId)
java.lang.String
toString()
-
Methods inherited from class idatt2106.group3.backend.Model.DTO.User.UserSuperclassDTO
getDateOfBirth, getEmail, getForename, getSurname, getTrainingLevel, setDateOfBirth, setEmail, setForename, setSurname, setTrainingLevel
-
-
-
-
Constructor Detail
-
UserDTO
public UserDTO(long userId, java.lang.String forename, java.lang.String surname, java.lang.String email, java.time.LocalDate dateOfBirth, Difficulty trainingLevel, java.lang.String role, java.lang.String profilePicture, boolean trusted)
-
UserDTO
public UserDTO()
-
UserDTO
public UserDTO(User user)
-
-
Method Detail
-
getUserId
public long getUserId()
-
setUserId
public void setUserId(long userId)
-
getRole
public java.lang.String getRole()
-
setRole
public void setRole(java.lang.String role)
-
getProfilePicture
public java.lang.String getProfilePicture()
-
setProfilePicture
public void setProfilePicture(java.lang.String profilePicture)
-
isTrusted
public boolean isTrusted()
-
setTrusted
public void setTrusted(boolean trusted)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classUserSuperclassDTO
-
-