Class

ELearningService

ELearningService(cookie)

Service class for e-learning functionality. Extends the BaseService class.
Constructor

# new ELearningService(cookie)

Creates an instance of ELearningService.
Parameters:
Name Type Description
cookie string The cookie value.

View Source elearning.service.ts, line 11

Classes

ELearningService

Methods

# async getELearning() → {Promise.<ELearningResponse>}

Retrieves the e-learning information (all modules). Alias for getStaticInfos().

View Source elearning.service.ts, line 123

A promise that resolves to the ELearningResponse object.
Promise.<ELearningResponse>

# async getInfo() → {Promise.<AxiosResponse>}

Retrieves information from the e-learning API.

View Source elearning.service.ts, line 107

If an error occurs during the API request.
Error
A promise that resolves to the Axios response object.
Promise.<AxiosResponse>

# async getModuleVideos(moduleName)

Retrieves the videos for a given module.
Parameters:
Name Type Description
moduleName string The name of the module.

View Source elearning.service.ts, line 131

# async getStaticInfos() → {Promise.<ELearningResponse>}

Retrieves the static information from the e-learning API. If the information has not been fetched yet, it calls the getInfo() method.

View Source elearning.service.ts, line 115

A promise that resolves to the ELearningResponse object.
Promise.<ELearningResponse>