Package it.unimib.unimibmodules.dto
Class UserDTO
java.lang.Object
it.unimib.unimibmodules.dto.UserDTO
A DTO representing a user
- Version:
- 0.4.1
- Author:
- Gianlorenzo Martini
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringSerialization of the id used to recognize a non-registered user.private StringSerialization of the email of the userprivate intSerialization of the id of the userprivate StringSerialization of the name of the userprivate StringSerialization of the password of the userprivate Set<QuestionDTO>Serialization of the questions created by the userprivate StringSerialization of the surname of the userSerialization of the surveys created by the userprivate StringSerialization of the username of the user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetId(int id) Modifies the id of the user.voidModifies the id of the user.voidsetUsername(Object username) Modifies the username of the user.voidsetUsername(String username) Modifies the username of the user.
-
Field Details
-
id
private int idSerialization of the id of the user -
email
Serialization of the email of the user -
username
Serialization of the username of the user -
password
Serialization of the password of the user -
name
Serialization of the name of the user -
surname
Serialization of the surname of the user -
compilationId
Serialization of the id used to recognize a non-registered user. -
questionsCreatedDTO
Serialization of the questions created by the user -
surveysCreatedDTO
Serialization of the surveys created by the user
-
-
Constructor Details
-
UserDTO
public UserDTO()
-
-
Method Details
-
setId
public void setId(int id) Modifies the id of the user.- Parameters:
id- the new id value
-
setId
Modifies the id of the user.- Parameters:
id- the new id value
-
setUsername
Modifies the username of the user.- Parameters:
username- the new username value
-
setUsername
Modifies the username of the user.- Parameters:
username- the new username value
-