Call management - Patrice-H/PatriceHochard_12_30052022 Wiki

Call management

Call handling is done by service functions using a custom hook that performs fetch operations.

All these functions are stored in separate files in the services folder.

List of services :

  • GetUserFirstName : It returns the first name of a user from an API or a local JSON file.
  • GetUserDailyActivities : It returns an array of objects from an API or a local JSON file, each object representing a day's worth of activity.
  • GetUserSessionsDuration : It returns an array of objects from an API or a local JSON file, each object representing the duration of a session for a day of the week
  • GetUserPerformanceStats : It returns an array of objects from an API or a local JSON file, each object representing the performance of an activity.
  • GetUserTodayScore : It returns the user's day score from an API or local JSON file.
  • GetUserDataKeys : It returns an object with nutrition data keys from an API or local JSON file.