| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package easytests.core.models; |
||
| 10 | @Data |
||
| 11 | public class AnswerModel implements AnswerModelInterface { |
||
| 12 | private Integer id; |
||
| 13 | |||
| 14 | private String txt; |
||
| 15 | |||
| 16 | private QuestionModelInterface question; |
||
| 17 | |||
| 18 | private Integer serialNumber; |
||
| 19 | |||
| 20 | private Boolean right; |
||
| 21 | |||
| 22 | public void map(AnswerEntity answerEntity) { |
||
| 23 | this.setId(answerEntity.getId()); |
||
| 24 | this.setTxt(answerEntity.getTxt()); |
||
| 25 | this.setSerialNumber(answerEntity.getSerialNumber()); |
||
| 26 | this.setQuestion(new QuestionModelEmpty(answerEntity.getQuestionId())); |
||
| 27 | this.setRight(answerEntity.getRight()); |
||
| 28 | } |
||
| 30 |