Skip to content
Youhao Zhao edited this page Apr 5, 2026 · 26 revisions

CRC Cards


CRC 1: User

User (Model)
Responsibilities Collaborators
1. Store profile, contact, and preference data.
2. Maintain role information for entrant, organizer, and admin.
3. Represent user identity throughout event participation flows.
1. Event
2. EntrantEvent
3. NotificationItem

CRC 2: Event

Event (Model)
Responsibilities Collaborators
1. Store event details such as title, capacity, and deadlines.
2. Define event rules, registration conditions, and QR-related data.
3. Act as the central object for creation, browsing, and selection.
1. User
2. EntrantEvent
3. OrganizerCreateEventActivity

CRC 3: EntrantEvent

EntrantEvent (Model)
Responsibilities Collaborators
1. Represent the relationship between an entrant and an event.
2. Track statuses such as waitlisted, invited, accepted, and cancelled.
3. Store participation data such as timestamps and optional location.
1. User
2. Event
3. InvitationFlowUtil

CRC 4: NotificationItem

NotificationItem (Model)
Responsibilities Collaborators
1. Represent a message or alert sent to a user.
2. Store read status, timestamps, and related event information.
3. Support communication between the system and participants.
1. User
2. Event
3. InvitationFlowUtil

CRC 5: InvitationFlowUtil

InvitationFlowUtil (Controller)
Responsibilities Collaborators
1. Control valid status transitions in the invitation workflow.
2. Keep entrant participation states consistent across the system.
3. Separate lottery state logic from interface-level code.
1. EntrantEvent
2. Event
3. WaitlistPromotionUtil

CRC 6: WaitlistPromotionUtil

WaitlistPromotionUtil (Controller)
Responsibilities Collaborators
1. Promote the next eligible entrant when a spot becomes available.
2. Preserve capacity limits and waitlist consistency during updates.
3. Trigger follow-up actions after a successful promotion.
1. EntrantEvent
2. Event
3. NotificationItem

CRC 7: OrganizerCreateEventActivity

OrganizerCreateEventActivity (View)
Responsibilities Collaborators
1. Provide the organizer interface for creating and editing events.
2. Collect event details and submit them to the system.
3. Support setup features such as poster and QR-related data.
1. User
2. Event
3. OrganizerEventDetailsActivity

CRC 8: EntrantQrScanActivity

EntrantQrScanActivity (View)
Responsibilities Collaborators
1. Let entrants scan and decode event QR codes.
2. Identify the event linked to the scanned code.
3. Route the user into the correct event participation flow.
1. Event
2. EntrantEventDetailsActivity
3. User

CRC 9: EntrantEventDetailsActivity

EntrantEventDetailsActivity (View)
Responsibilities Collaborators
1. Display detailed event information to entrants.
2. Let entrants join, leave, accept, or decline when allowed.
3. Update visible actions based on current participation status.
1. User
2. Event
3. EntrantEvent

CRC 10: EntrantsListActivity

EntrantsListActivity (View / Controller)
Responsibilities Collaborators
1. Show organizer-side entrant groups such as waitlisted and invited.
2. Support selection, notification, and participant management actions.
3. Present the operational side of the lottery workflow.
1. Event
2. EntrantEvent
3. WaitlistPromotionUtil

CRC 11: AdminBrowseProfilesActivity

AdminBrowseProfilesActivity (View / Controller)
Responsibilities Collaborators
1. Allow administrators to browse and review user profiles.
2. Support moderation-related actions for system oversight.
3. Provide administrative access across the user management flow.
1. User
2. AdminProfileActivity
3. AdminBrowseEventsActivity

MVC Mapping

MVC Part Project Classes / Elements
Model User, Event, EntrantEvent, NotificationItem
View activity_main.xml, activity_entrant_event_details.xml, activity_organizer_create_event.xml, activity_admin_browse_profiles.xml, RecyclerView item layouts, dialog layouts, and bottom navigation layouts
Controller OrganizerCreateEventActivity, EntrantQrScanActivity, EntrantEventDetailsActivity, EntrantsListActivity, AdminBrowseProfilesActivity, InvitationFlowUtil, WaitlistPromotionUtil

Clone this wiki locally