SavedCourse

Object used for managing a saved course

class Object
trait Matchable
class Any

Type members

Classlikes

case class SavedCourse(courseId: CourseIdentifier, description: Option[String], quizList: List[Quiz]) extends Course

Case class for SavedCourse model

Case class for SavedCourse model

Value parameters:
courseId

course identifier

description

description of the course (optional)

quizList

quiz list of saved quiz

Value members

Concrete methods

Change the course identifier

Change the course identifier

Value parameters:
courseId

a new course identifier

savedCourse

the saved course to edit

Returns:

SavedCourse

def changeDescription(savedCourse: SavedCourse, description: Option[String]): SavedCourse

Change the course description

Change the course description

Value parameters:
description

a new course description (optional)

savedCourse

the saved course to edit

Returns:

SavedCourse

def changeQuizList(savedCourse: SavedCourse, quizList: List[Quiz]): SavedCourse

Change the list of quiz

Change the list of quiz

Value parameters:
quizList

a new list of quiz

savedCourse

the saved course to edit

Returns:

SavedCourse