ImportHandler

class Object
trait Matchable
class Any

Value members

Concrete methods

def importSavedCourseListFromFile(session: Session, filePath: String): Try[List[SavedCourse]]

Import the list of SavedCourse from chosen file, and merges it with the saved course list of the passed session. Name of the file is predetermined in Configuration

Import the list of SavedCourse from chosen file, and merges it with the saved course list of the passed session. Name of the file is predetermined in Configuration

Returns:

a Try of List[SavedCourse]

Import the Session from personal directory. Path and name are predetermined in Configuration

Import the Session from personal directory. Path and name are predetermined in Configuration

Returns:

an updated Try[Session]

Inherited methods

def loadDataFromFile[A](jsonParser: JsonParser[A], filePath: String): Try[A]

Load data from a file and return the object depending on which JsonParser type is passed

Load data from a file and return the object depending on which JsonParser type is passed

Returns:

a Try[A]

Inherited from:
DataStorageHandler
def storeDataToPath[A](data: A, filePath: String): Try[String]

Store JSON parsed data in a file depending on which JsonParser type is passed

Store JSON parsed data in a file depending on which JsonParser type is passed

Returns:

a Try[String] with file path

Inherited from:
DataStorageHandler