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 String
Serialization of the id used to recognize a non-registered user.private String
Serialization of the email of the userprivate int
Serialization of the id of the userprivate String
Serialization of the name of the userprivate String
Serialization of the password of the userprivate Set<QuestionDTO>
Serialization of the questions created by the userprivate String
Serialization of the surname of the userSerialization of the surveys created by the userprivate String
Serialization of the username of the user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setId
(int id) Modifies the id of the user.void
Modifies the id of the user.void
setUsername
(Object username) Modifies the username of the user.void
setUsername
(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
-