Class QuestionDTO

java.lang.Object
it.unimib.unimibmodules.dto.QuestionDTO

public class QuestionDTO extends Object
DTO for Question.
Version:
0.4.1
Author:
Khalil, Lorenzo Occhipinti
  • Field Details

    • id

      private int id
      Serialization of the id of the question.
    • category

      private CategoryDTO category
      Serialization of the category of the question.
    • urlImage

      private String urlImage
      Serialization of the image's url of the question.
    • text

      private String text
      Serialization of the text of the question.
    • answerDTO

      private Set<AnswerDTO> answerDTO
      Serialization of the list of the answers.
    • closeEndedAnswerDTOSet

      private Set<CloseEndedAnswerDTO> closeEndedAnswerDTOSet
      Serialization of the list of the answers.
    • user

      private UserDTO user
      Serialization of the id of the user who created the question.
    • surveyQuestionsDTO

      private Set<SurveyQuestionsDTO> surveyQuestionsDTO
      Serialization of the list of the questions.
    • questionType

      private String 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, setting id as the new value.
      Parameters:
      id - the new id value
    • setId

      public void setId(Object id)
      Modifies the id of the question, setting id as the new value.
      Parameters:
      id - the new id value