Constructor
# new PlanningService(cookie)
Creates an instance of PlanningService.
Parameters:
Name | Type | Description |
---|---|---|
cookie |
string
|
The cookie value. |
Methods
# async getTodayPlanning() → {Promise.<Planning>}
Retrieves the planning for today.
A promise that resolves to the planning for today.
Promise.<Planning>
# async getWeekPlanning() → {Promise.<Planning>}
Retrieves the planning for the current week.
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.
A promise that resolves to the whole planning.
Promise.<Planning>