Skip to content
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

activity_entrant_registration/ activity_organizer_registration
Responsibilities Collaborators
1. display textInput for user to enter their info for registration Entrant/OrganizerRegistrationActivity

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

Entrant/OrganizerRegistrationActivity
Responsibilities Collaborators
1. check and store the registration data activity_entrant_registration/ activity_organizer_registration
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:

Notification
Responsibilities Collaborators
1. notification content NotificaitonActivity
2. status of a notification(read/unread) FirebaseFireStore
3. recipient decision

View:\

activity_notifications
Responsibilities Collaborators
1. display notification list NotificaitonsActivity

activity_notifications
Responsibilities Collaborators
1. display notification list NotificaitonsActivity

notification_item
Responsibilities Collaborators
1. display notification details notificationAdapter

notification_fragment
Responsibilities Collaborators
1. display a textinput for organizer to enter the message notificaitonFragment

Controller: \

NotificationsActivity
Responsibilities Collaborators
1. notification content NotificaitonActivity
2. status of a notification(read/unread) FirebaseFireStore
3. recipient decision

NotificationFragment
Responsibilities Collaborators
1. pass notification content to entrantsListActivity
2. ask organizer input the content they want to send

NotificationAdapter
Responsibilities Collaborators
1. bind notifications data to a view item_notification

CRC :Admin Model: None(using User, Event)


View:

activity_admin_browse_events
Responsibilities Collaborators
1. display all events AdminBrowseEventsActivity

activity_browse_profiles
Responsibilities Collaborators
1. display all users AdminBrowseProfilesActivity

activity_admin_event_details
Responsibilities Collaborators
1. display event details AdminEventDetailsActivity

activity_admin_sign_in
Responsibilities Collaborators
1. display textInput for admins to enter their info for authenticate AdminSignInActivity

Controller:

AdminBrowseEventsActivity
Responsibilities Collaborators
1. fetch all events FirebaseFirestore

AdminBrowseProfilesActivity
Responsibilities Collaborators
1. fetch all users FirebaseFirestore

AdminSignInActivity
Responsibilities Collaborators
1. authentication FirebaseFirestore

AdminEventDetailsActivity
Responsibilities Collaborators
1. fetch event deatils FirebaseFirestore
2. delete event in the db if needed Event

Clone this wiki locally