Munchy API Documentation - NikolaTotev/Munchy_Project GitHub Wiki
1. ProgramManager
The ProgramManager class is initialised by the UI. Only 1 instance is created. After that the program manager handles instantiating of the other back-end classed of the API. The ProgramManager stores all instances of the back-end classes and they can be accessed through the ProgramManager instance
2. FoodManager
The FoodManager class handles deserialization and storing of the FoodDef dictionary. The FoodDef dictionary holds all the food items the user can add to their fridge or shopping list. There is only one instance of the FoodManager created on program start and it is stored in the ProgramManager
3. RecipeManager
The RecipeManager class handles deserialization of the dictionary of recipes in the RecipeSaves file. It also handles sorting recipes based on the users preferences, type of recipe, what recipes the user has the ingredients for and what recipes are for breakfast, lunch and dinner.
4. FoodManager
The FoodManager class handles deserialization of the dictionary of recipes in the FoodData file. It handles storing the recipes in a dictionary that can be accesed by ProgramManager > FoodManag > Foods. The instance of the class is created an stored in the ProgramManager.