Skip to content

CRC Cards

asad70 edited this page Oct 15, 2021 · 3 revisions
MainPage
Use valid unique identifier -> gives access to display daily habits, list of habits to add habits, and user profile events. MainActivity
Displays all info about habit and list of health events Profile
Has edit and delete buttons for habit and add button for list of events Habits
Addition of new habits Add/Edit habit event
Editing of existing habits User search
Habits
Class for adding all properties of a given habit MainPage
Get all habits from unique identifier for user Habit Events
Gives reference to add/edit habits Habit display
Helps display theses items on MainPage Profile
MainActivity
Get user access to their profiles and habits trough unique identifier -> username and password and redirects to main page MainPage
Profile
HabitDisplay
Called on habit clicked event MainPage
Displays all info about habit and list of health events Habits
Has edit and delete buttons for habit and add button for list of events Habit Events
Add/Edit habit
Add/Edit habit event
Profile
Profile
Adds unique identifier for user and information regarding friends and requests MainActivity
Used to access and display above info on MainPage
Serves as a refernce for the user info in firestore
UserSearch
Displays results for search for users MainPage
Gives the option to follow or request another user to see their habits Profile
Adds to current user's pending requests and to toher user's recieved requests on MainPage in the user section
EditHabbit
Adds new or edits exiting habit MainPage
Called by the add button on MainPage or edit button in HabitDisplay Habits
HabitDisplay
EditHabbitEvent
Adds new or edits exiting habit HabtEvents
Includes add, edit, punctuality Habits
date(scroller), status and optional data HabitDisplay
called either by the add or edit button
HabitEventDisplay
Shows the data of the selected habit event from the associated habit HabitEvents
Edit and delete buttons for habit events Habits
EditHabbitEvent
HabitEvents
gives list of events associated with a particular habit EditHabbitEvent
Tells whether habit occurred on a date and helps calculate progress Habits
Stores date, status (done or not), optional comment, photo or geolocation of event-> class for hiding this type of data Profiles
Clone this wiki locally