Class UserDTO


  • public class UserDTO
    extends UserSuperclassDTO
    DTO class for sending User information to frontend
    • 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)