| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package easytests.core.models; |
||
| 13 | @Data |
||
| 14 | public class QuestionModel implements QuestionModelInterface { |
||
| 15 | |||
| 16 | private Integer id; |
||
| 17 | |||
| 18 | private String text; |
||
| 19 | |||
| 20 | private QuestionTypeModelInterface questionType; |
||
| 21 | |||
| 22 | private TopicModelInterface topic; |
||
| 23 | |||
| 24 | private List<AnswerModelInterface> answers; |
||
| 25 | |||
| 26 | public void map(QuestionEntity questionEntity) { |
||
| 27 | this.setId(questionEntity.getId()); |
||
| 28 | this.setText(questionEntity.getText()); |
||
| 29 | this.setQuestionType(new QuestionTypeModelEmpty(questionEntity.getQuestionTypeId())); |
||
| 30 | this.setTopic(new TopicModelEmpty(questionEntity.getTopicId())); |
||
| 31 | this.setAnswers(new ModelsListEmpty()); |
||
| 32 | } |
||
| 34 |