Package it.unimib.unimibmodules.dto
Class QuestionDTO
java.lang.Object
it.unimib.unimibmodules.dto.QuestionDTO
DTO for Question.
- Version:
- 0.4.1
- Author:
- Khalil, Lorenzo Occhipinti
-
Field Summary
FieldsModifier and TypeFieldDescriptionSerialization of the list of the answers.private CategoryDTOSerialization of the category of the question.private Set<CloseEndedAnswerDTO>Serialization of the list of the answers.private intSerialization of the id of the question.private StringSerialization of the type of the question.private Set<SurveyQuestionsDTO>Serialization of the list of the questions.private StringSerialization of the text of the question.private StringSerialization of the image's url of the question.private UserDTOSerialization of the id of the user who created the question. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
private int idSerialization of the id of the question. -
category
Serialization of the category of the question. -
urlImage
Serialization of the image's url of the question. -
text
Serialization of the text of the question. -
answerDTO
Serialization of the list of the answers. -
closeEndedAnswerDTOSet
Serialization of the list of the answers. -
user
Serialization of the id of the user who created the question. -
surveyQuestionsDTO
Serialization of the list of the questions. -
questionType
Serialization of the type of the question.
-
-
Constructor Details
-
QuestionDTO
public QuestionDTO()
-
-
Method Details
-
setId
public void setId(int id) Modifies the id of the question, settingidas the new value.- Parameters:
id- the new id value
-
setId
Modifies the id of the question, settingidas the new value.- Parameters:
id- the new id value
-