Class QuizScoringService.ScoringResult
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.quiz.service.QuizScoringService.ScoringResult
- Enclosing class:
- QuizScoringService
Inner class representing the result of scoring a quiz question.
-
Constructor Summary
ConstructorsConstructorDescriptionScoringResult(boolean bIsCorrect, int nPointsEarned) Constructs a new ScoringResult. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of points earned.booleanReturns whether the answer was correct.
-
Constructor Details
-
ScoringResult
public ScoringResult(boolean bIsCorrect, int nPointsEarned) Constructs a new ScoringResult.- Parameters:
bIsCorrect- whether the answer was correctnPointsEarned- the number of points earned
-
-
Method Details
-
isCorrect
public boolean isCorrect()Returns whether the answer was correct.- Returns:
- true if the answer was correct, false otherwise
-
getPointsEarned
public int getPointsEarned()Returns the number of points earned.- Returns:
- the points earned
-