Repository navigation
Stanley edited this page Mar 13, 2026
·
26 revisions
UPDATE MVC
CRC 1: User MVC Pattern
Model:
| User | |
|---|---|
| Responsibilities | Collaborators |
| 1. Store a unique id number | Entrant |
| 2. Record profile info(like name, email and phone number) | FirebaseFirestore |
| 3. password_hash | Admin |
| 4. store device info( to identified by user's device) |
View:
| activity_general_sign_in | |
|---|---|
| Responsibilities | Collaborators |
| 1. display textInput for user to enter their info for authenticate | GeneralSignInActivity |
| 2. display a button for user to authenticate and navigate to start page if authenticated |
Controller:
| GeneralSignInActivity | |
|---|---|
| Responsibilities | Collaborators |
| 1. authenticates users with Firebase Auth using email/password | User |
| 2. navigate users to the start page according to their roleche | FirebaseAuth |
| 3. Stores session information in SharedPreferences | FirebaseUser |
| 4. initialize sign in page view | FirebaseFirestore |
**CRC 2: Entrant MVC Pattern **
Model:
| Entrant | |
|---|---|
| Responsibilities | Collaborators |
| 1. sotre location when they registered | User |
| 2. store registration time/ (invited time/cancelled time/signed up time if possible) | |
| 3. store userid, username(faciliate rendering) |
View:
| entrants_list | |
|---|---|
| Responsibilities | Collaborators |
| 1. rendering entrants to a list | Entrant |
| 2. display a button for organizer to display details | entrant_details_fragment |
| entrant_details_fragment | |
|---|---|
| Responsibilities | Collaborators |
| 1. rendering entrants to a list | Entrant |
| 2. display a button for organizer to display details | details_fragment |
Controller:
| entrantsListActivity | |
|---|---|
| Responsibilities | Collaborators |
| 1. fetch data from firebase | Entrant |
| 2. sent different data collections to adapter to redering the list | details_fragment |
| 3. commit the sampling result to the db | sample_fragment |
| 4. display entrants location on the map | view_location |
| sampleFragment | |
|---|---|
| 1. prompt organizer to decide total number of entrants withdraw from waited list | entrantsListActivity |
| 2. send the number back to entrantsListActivity for it to handle with db |
CRC 3: Controller MVC Pattern
Controller:
| invitedListAdapter etc. 4 list adapter | |
|---|---|
| Responsibilities | Collaborators |
| 1. rendering entrants of a specific type to a list | Entrant |
| details_fragment |
| 3 | Organizer |
|---|---|
| Responsibilities | Collaborators |
| 1. create event and generate QR code, upload/update poster | Text |
| 2. set a registration period for created event | |
| 3. view entrants in the list(text and visual) | |
| 4. manage notification preferrence(via email, message or app) | |
| 5. enable/disable the geolocation requirement | |
| 6. notify entrants on specific point(e.g. won the lottery/selected/cancelled/final registered) | |
| 7. view a list of all chosen entrants who are invited to apply/cancelled/finally registered | |
| 8. export final list in CSV format | |
| 9. cancel entrants that did not sign up for the event | |
| 10. set number of attendees for sampling | |
| 11. draw a replacement applicant when a elected applicant cancels/rejects. |
| 5. | Event |
|---|---|
| Responsibilities | Collaborators |
| 1. store info(name, description, a time and place, registration start time and end time, optional promotional poster(url), organizer, entrants, attendees (accepted), price per person, topic(faciliate filter by interests), event capacity) | Text |
| 2. store waiting list and status(non-invited/invited/cancelled/accepted) |
CRC : Notification MVC Pattern
Model:
| 8. | Notification |
|---|---|
| Responsibilities | Collaborators |
| 1. notification content | NotificaitonActivity |
| 2. status of a notification(read/unread) | FirebaseFireStore |
| 3. recipient decision |
| 4. | Admin |
|---|---|
| Responsibilities | Collaborators |
| 1. remove events/profiles/images/organizers | Text |
| 2. view events/profiles/images/logs of all notifications sent to entrants by organizers |