UserRepository stores all User-related objects in an array.
On load it will be the catalyst for all methods (pulls ID from somewhere)
-
let allUsers = new UserRepository(userData)
-
let currentUser = returnUserData(ID)
Individual user class instantiated with matching user object from User dataset
- This will be our representation of our user, will be responsible for displaying welcome
let assignedUser = new User(currentUser)
HydrateRepo class = the class that holds the methods to interact with the hydration dataset
Hydrate class = (could we use static methods with id as argument? Or instatiate with only an ID?)
- since Hydration class only needs to calculate and return, it should not store data
SleepRepo class = the class that holds the methods to interact with the Sleep dataset
Sleep class = (could we use static methods with id as argument? Or instatiate with only an ID?)
- since Sleep class only needs to calculate and return, it should not store data
ActivityRepo class = the class that holds the methods to interact with the Activity dataset
Activity class = (could we use static methods with id as argument? Or instatiate with only an ID?)
- since Sleep class only needs to calculate and return, it should not store data