QuizInStats

Object for quiz in player stats model

class Object
trait Matchable
class Any

Type members

Classlikes

case class QuizInStats(quizId: UUID, totalSeen: Int, totalScore: Int, totalRightAnswers: Int, averageTimeAnswer: Double)

Create a new QuizInStats

Create a new QuizInStats

Value parameters:
averageTimeAnswer

average time taken by user to answer

totalRightAnswers

number of time the user answered the quiz correctly

totalScore

total score gained in the quiz

totalSeen

number of times the user has answered the quiz

Value members

Concrete methods

def changeAverageTimeAnswer(quizInStats: QuizInStats, averageTimeAnswer: Double): QuizInStats

Change average time answer in quiz in stats

Change average time answer in quiz in stats

Returns:

updated QuizInStats

def changeTotalRightAnswers(quizInStats: QuizInStats, totalRightAnswers: Int): QuizInStats

Change total right answers in quiz in stats

Change total right answers in quiz in stats

Returns:

updated QuizInStats

def changeTotalScore(quizInStats: QuizInStats, totalScore: Int): QuizInStats

Change total score of the quiz

Change total score of the quiz

Returns:

updated QuizInStats

def changeTotalSeen(quizInStats: QuizInStats, totalSeen: Int): QuizInStats

Change total seen in quiz in stats

Change total seen in quiz in stats

Returns:

updated QuizInStats

def getQuizQuestionById(quizInStatsId: UUID, savedCourseList: List[SavedCourse]): String

Get the quiz question guiven an quiz id

Get the quiz question guiven an quiz id

Returns:

a String with the question