Quiz

public class Quiz extends CourseUnitMetadata

Quiz object to store questions and answer for a chapter

Constructors

Quiz

public Quiz()

Quiz

public Quiz(String name, CourseUnitState state, String content, String description, Map<String, String> properties)

Quiz

public Quiz(String name, CourseUnitState state, String content, String description, Map<String, String> properties, List<Question> questions, double passPercentage)

Methods

equals

public boolean equals(Object obj)

getChapter

public Chapter getChapter()

getPassPercentage

public double getPassPercentage()

getProperties

public Map<String, String> getProperties()

getQuestions

public List<Question> getQuestions()

hashCode

public int hashCode()

setChapter

public void setChapter(Chapter chapter)

setPassPercentage

public void setPassPercentage(double passPercentage)

setProperties

public void setProperties(Map<String, String> properties)

setQuestions

public void setQuestions(List<Question> questions)

toUnitDto

public CourseUnitDto toUnitDto()

{@inheritDoc}