package com.guanglian.question.model;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class Choice implements Serializable{
	
	private Integer choiceId;
	@NotNull
	private Integer questionId;
	@NotNull
	private String choiceContent;
	@NotNull
	private Boolean isCorrect;
	private String choiceName;

	public String getChoiceName() { return choiceName; }
	public void setChoiceName(String choiceName) { this.choiceName = choiceName; }
	public Choice() { }
	public Choice(Integer questionId, String choiceContent, Boolean isCorrect, String choiceName) {
		this(null, questionId, choiceContent, isCorrect, choiceName);
	}
	public Choice(Integer choiceId, Integer questionId, String choiceContent, Boolean isCorrect, String choiceName) {
		this.choiceId = choiceId;
		this.questionId = questionId;
		this.choiceContent = choiceContent;
		this.isCorrect = isCorrect;
		this.choiceName = choiceName;
	}
	public Integer getChoiceId() {
		return choiceId;
	}
	public void setChoiceId(Integer choiceId) {
		this.choiceId = choiceId;
	}
	public Integer getQuestionId() {
		return questionId;
	}
	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}
	public String getChoiceContent() {
		return choiceContent;
	}
	public void setChoiceContent(String choiceContent) {
		this.choiceContent = choiceContent;
	}
	public Boolean getIsCorrect() {
		return isCorrect;
	}
	public void setIsCorrect(Boolean isCorrect) {
		this.isCorrect = isCorrect;
	}
	
}
