package com.syzton.sunread.dto.exam;
import com.syzton.sunread.model.exam.Answer;
import com.syzton.sunread.model.exam.ObjectiveAnswer;
import com.syzton.sunread.model.exam.ObjectiveQuestion;
import com.syzton.sunread.model.exam.Option;
import com.syzton.sunread.model.exam.SpeedQuestion;
public class SpeedAnswerDTO {
protected SpeedQuestion question;
protected Long studentId;
private Option option;
public Answer FromOTD(){
ObjectiveAnswer answer = new ObjectiveAnswer();
answer.setOption(option);
answer.setQuestion(question);
answer.setStudentId(studentId);
return answer;
}
public Long getStudentId() {
return studentId;
}
public void setStudentId(Long studentId) {
this.studentId = studentId;
}
public SpeedQuestion getQuestion() {
return question;
}
public void setQuestion(SpeedQuestion question) {
this.question = question;
}
public Option getOption() {
return option;
}
public void setOption(Option option) {
this.option = option;
}
}