Class Quiz
java.lang.Object
ai.tutor.cab302exceptionalhandlers.model.Quiz
Represents a Quiz
Quizzes must have a name and difficulty. Within a quiz, there will be
multiple options for the student to choose from. See QuizQuestion
- Author:
- Joshua M.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Quiz
Constructor for a Quiz object- Parameters:
messageId
- The message id that this quiz belongs to, must be greater than 0name
- The name of the quiz, must not be null or empty and must be less than 50 charactersdifficulty
- The difficulty of the quiz, must not be null or empty and must be less than 25 characters- Throws:
IllegalArgumentException
- if any of the parameters are invalid
-
-
Method Details
-
getMessageId
public int getMessageId() -
getName
-
getDifficulty
-