Class QuizScoringService.ScoringResult

java.lang.Object
fr.paris.lutece.plugins.wiki.modules.quiz.service.QuizScoringService.ScoringResult
Enclosing class:
QuizScoringService

public static class QuizScoringService.ScoringResult extends Object
Inner class representing the result of scoring a quiz question.
  • Constructor Details

    • ScoringResult

      public ScoringResult(boolean bIsCorrect, int nPointsEarned)
      Constructs a new ScoringResult.
      Parameters:
      bIsCorrect - whether the answer was correct
      nPointsEarned - 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