Class

PlanningService

PlanningService(cookie)

Constructor

# new PlanningService(cookie)

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

View Source planning.service.ts, line 16

Methods

# async getTodayPlanning() → {Promise.<Planning>}

Retrieves the planning for today.

View Source planning.service.ts, line 54

A promise that resolves to the planning for today.
Promise.<Planning>

# async getWeekPlanning() → {Promise.<Planning>}

Retrieves the planning for the current week.

View Source planning.service.ts, line 38

A promise that resolves to the planning for the current week.
Promise.<Planning>

# async getWholePlanning() → {Promise.<Planning>}

Retrieves the whole planning. If the planning has not been fetched yet, it calls the API to fetch it.

View Source planning.service.ts, line 24

A promise that resolves to the whole planning.
Promise.<Planning>