Index

A B C D E F G H I L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

AdminBrowseEventsActivity - Class in com.example.lottery.admin
AdminBrowseEventsActivity serves as the administrator event browser, displaying a summary of all events.
AdminBrowseEventsActivity() - Constructor for class com.example.lottery.admin.AdminBrowseEventsActivity
 
AdminBrowseImagesActivity - Class in com.example.lottery.admin
AdminBrowseImagesActivity serves as the administrator image browser, displaying all event posters.
AdminBrowseImagesActivity() - Constructor for class com.example.lottery.admin.AdminBrowseImagesActivity
 
AdminBrowseLogsActivity - Class in com.example.lottery.admin
Admin page for browsing all notification logs sent by organizers to entrants.
AdminBrowseLogsActivity() - Constructor for class com.example.lottery.admin.AdminBrowseLogsActivity
 
AdminBrowseProfilesActivity - Class in com.example.lottery.admin
Allows administrators to browse all user profiles in the system.
AdminBrowseProfilesActivity() - Constructor for class com.example.lottery.admin.AdminBrowseProfilesActivity
 
AdminEventDetailsActivity - Class in com.example.lottery.admin
Activity that displays the details of a specific event from an administrator's perspective.
AdminEventDetailsActivity() - Constructor for class com.example.lottery.admin.AdminEventDetailsActivity
 
AdminImageAdapter - Class in com.example.lottery.adapter
Adapter for displaying event poster images in the admin image browser.
AdminImageAdapter(List<Event>, AdminImageAdapter.OnImageClickListener) - Constructor for class com.example.lottery.adapter.AdminImageAdapter
Constructs a new AdminImageAdapter.
AdminImageAdapter.ImageViewHolder - Class in com.example.lottery.adapter
ViewHolder class for holding and binding image item views.
AdminImageAdapter.OnImageClickListener - Interface in com.example.lottery.adapter
Interface definition for a callback to be invoked when an image item is clicked.
AdminImageDetailsActivity - Class in com.example.lottery.admin
AdminImageDetailsActivity displays details of a specific event's poster image and provides functionality for an administrator to remove the image.
AdminImageDetailsActivity() - Constructor for class com.example.lottery.admin.AdminImageDetailsActivity
 
AdminNavigationHelper - Class in com.example.lottery.util
Centralised helper that wires up the admin bottom-navigation bar (layout_bottom_nav_admin.xml) in every admin screen.
AdminNavigationHelper.AdminTab - Enum Class in com.example.lottery.util
Tabs in the admin bottom-navigation bar.
AdminProfileActivity - Class in com.example.lottery.admin
AdminProfileActivity displays the admin's profile and allows switching between entrant and organizer roles.
AdminProfileActivity() - Constructor for class com.example.lottery.admin.AdminProfileActivity
 
AdminRoleManager - Class in com.example.lottery.util
Utility class to manage admin role switching state.
AdminRoleManager() - Constructor for class com.example.lottery.util.AdminRoleManager
 
AdminSignInActivity - Class in com.example.lottery.admin
Admin authentication screen.
AdminSignInActivity() - Constructor for class com.example.lottery.admin.AdminSignInActivity
 
allUsers - Variable in class com.example.lottery.admin.AdminBrowseProfilesActivity
 
AvatarUtils - Class in com.example.lottery.util
Utility class to generate default avatar.
AvatarUtils() - Constructor for class com.example.lottery.util.AvatarUtils
 

B

base64 - Variable in class com.example.lottery.util.ProfileImageHelper.ProcessedImage
 
bind(Event, AdminImageAdapter.OnImageClickListener) - Method in class com.example.lottery.adapter.AdminImageAdapter.ImageViewHolder
Binds event poster data to the view elements.
bitmap - Variable in class com.example.lottery.util.ProfileImageHelper.ProcessedImage
 
BROWSE_ALL - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
BROWSE_NEW - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
BROWSE_RECOMMENDED - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
buildCancelledEntrantUpdate() - Static method in class com.example.lottery.util.InvitationFlowUtil
Builds a Firestore update payload for cancelling an entrant's participation.
buildEntrantStatusUpdateFromResponse(String) - Static method in class com.example.lottery.util.InvitationFlowUtil
Builds a Firestore update payload for an entrant status based on a notification response.
buildInvitedEntrantUpdate() - Static method in class com.example.lottery.util.InvitationFlowUtil
Builds a Firestore update payload for marking an entrant as invited.
buildNotSelectedEntrantUpdate() - Static method in class com.example.lottery.util.InvitationFlowUtil
Builds a Firestore update payload for marking an entrant as not selected.
buildReadNotificationUpdate() - Static method in class com.example.lottery.util.InvitationFlowUtil
Builds a Firestore update payload for marking a notification as read.
buildWaitlistJoinUpdate() - Static method in class com.example.lottery.util.InvitationFlowUtil
Builds a Firestore update payload for an entrant joining the waitlist after an invitation.

C

CancelledListAdapter - Class in com.example.lottery.adapter
Adapter for cancelled entrants RecyclerView to display a list of entrants that cancelled the specific event
CancelledListAdapter(Context, List<EntrantEvent>) - Constructor for class com.example.lottery.adapter.CancelledListAdapter
data is passed into the constructor
CancelledListAdapter.ViewHolder - Class in com.example.lottery.adapter
stores and recycles views as they are scrolled off screen
CATEGORY_ALL - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
cleanUpCoOrganizerRecords(FirebaseFirestore, String, Runnable) - Static method in class com.example.lottery.util.UserDeletionUtil
Batch-deletes only co-organizer records for the given user across every event.
cleanUpUserRecords(FirebaseFirestore, String, Runnable) - Static method in class com.example.lottery.util.UserDeletionUtil
Batch-deletes all records for the given user across every event (co-organizers and waitlists), and also clears their local sub-collections (like inbox), then invokes onDone.
clearAdminRoleSession(Context) - Static method in class com.example.lottery.util.AdminRoleManager
Clears the admin role session (call when logging out or returning to main admin).
clearCountsCache() - Method in class com.example.lottery.adapter.EventAdapter
 
CO_ORGANIZERS - Static variable in class com.example.lottery.util.FirestorePaths
 
com.example.lottery - package com.example.lottery
 
com.example.lottery.adapter - package com.example.lottery.adapter
 
com.example.lottery.admin - package com.example.lottery.admin
 
com.example.lottery.entrant - package com.example.lottery.entrant
 
com.example.lottery.fragment - package com.example.lottery.fragment
 
com.example.lottery.model - package com.example.lottery.model
 
com.example.lottery.organizer - package com.example.lottery.organizer
 
com.example.lottery.util - package com.example.lottery.util
 
Comment - Class in com.example.lottery.model
Model class representing a comment on an event.
Comment() - Constructor for class com.example.lottery.model.Comment
Default constructor for Firestore serialization.
Comment(String, String, String, String, String, String, Timestamp, Timestamp, boolean) - Constructor for class com.example.lottery.model.Comment
Full constructor for a comment.
CommentAdapter - Class in com.example.lottery.adapter
RecyclerView adapter for displaying comments on an event, with optional delete support for organizers and admins.
CommentAdapter(List<Comment>, boolean, String) - Constructor for class com.example.lottery.adapter.CommentAdapter
Creates a new CommentAdapter.
CommentBottomSheet - Class in com.example.lottery.fragment
Bottom sheet dialog that displays a real-time comment thread for an event and allows entrants and organizers to post new comments.
CommentBottomSheet() - Constructor for class com.example.lottery.fragment.CommentBottomSheet
 
COMMENTS - Static variable in class com.example.lottery.util.FirestorePaths
 
ConfirmationTicketGenerator - Class in com.example.lottery.util
Utility class responsible for generating styled confirmation ticket PDFs.

D

disableNavigation(Activity) - Static method in class com.example.lottery.util.EntrantNavigationHelper
Replaces all tab click listeners with no-ops.
disableNavigation(Activity) - Static method in class com.example.lottery.util.OrganizerNavigationHelper
Replaces all tab and FAB click listeners with no-ops.
displayProfileImage(String, ImageView, ImageView, String) - Static method in class com.example.lottery.util.ProfileImageHelper
Displays a profile image from a Base64 string, or falls back to a generated default avatar.

E

EntrantAdapter - Class in com.example.lottery.adapter
Adapter for displaying a list of entrants (Users) in a ListView.
EntrantAdapter(Context, ArrayList<User>) - Constructor for class com.example.lottery.adapter.EntrantAdapter
 
EntrantDetailsFragment - Class in com.example.lottery.fragment
fragment for showing details of an entrant in an event
EntrantDetailsFragment() - Constructor for class com.example.lottery.fragment.EntrantDetailsFragment
 
EntrantEvent - Class in com.example.lottery.model
Model class representing an entrant's participation record in an event's waiting list.
EntrantEvent() - Constructor for class com.example.lottery.model.EntrantEvent
Default constructor for Firestore serialization.
EntrantEvent(String, String, String, String, Timestamp, Timestamp, Timestamp, Timestamp, Timestamp, GeoPoint) - Constructor for class com.example.lottery.model.EntrantEvent
Full constructor for an entrant-event relationship.
EntrantEventAdapter - Class in com.example.lottery.adapter
RecyclerView adapter used to display events to entrants on the EntrantMainActivity screen.
EntrantEventAdapter(List<Event>, EntrantEventAdapter.OnEventClickListener, String) - Constructor for class com.example.lottery.adapter.EntrantEventAdapter
Constructs an EntrantEventAdapter.
EntrantEventAdapter.OnEventClickListener - Interface in com.example.lottery.adapter
Listener interface used to notify when an event item is clicked.
EntrantEventDetailsActivity - Class in com.example.lottery.entrant
Activity that displays detailed information about a specific event from an entrant's perspective.
EntrantEventDetailsActivity() - Constructor for class com.example.lottery.entrant.EntrantEventDetailsActivity
 
EntrantEventFilterUtils - Class in com.example.lottery.util
Pure filter predicates for the entrant Explore event list.
EntrantEventHistoryActivity - Class in com.example.lottery.entrant
Activity that displays the history of events an entrant has registered for.
EntrantEventHistoryActivity() - Constructor for class com.example.lottery.entrant.EntrantEventHistoryActivity
 
EntrantHistoryAdapter - Class in com.example.lottery.adapter
Adapter for displaying the entrant's event registration history.
EntrantHistoryAdapter(List<EntrantHistoryAdapter.HistoryItem>, EntrantHistoryAdapter.OnItemClickListener, String) - Constructor for class com.example.lottery.adapter.EntrantHistoryAdapter
Creates a new EntrantHistoryAdapter.
EntrantHistoryAdapter.HistoryItem - Class in com.example.lottery.adapter
Data class that pairs an Event with the entrant's registration status and the organizer's display name.
EntrantHistoryAdapter.OnItemClickListener - Interface in com.example.lottery.adapter
Listener interface for handling clicks on history items.
EntrantLotteryGuidelinesActivity - Class in com.example.lottery.entrant
Activity that displays the lottery guidelines and rules for entrants.
EntrantLotteryGuidelinesActivity() - Constructor for class com.example.lottery.entrant.EntrantLotteryGuidelinesActivity
 
EntrantMainActivity - Class in com.example.lottery.entrant
Main activity for the entrant user role.
EntrantMainActivity() - Constructor for class com.example.lottery.entrant.EntrantMainActivity
 
EntrantMapActivity - Class in com.example.lottery.entrant
Activity to display the locations of all entrants with saved coordinates for a specific event's waitingList records.
EntrantMapActivity() - Constructor for class com.example.lottery.entrant.EntrantMapActivity
 
EntrantNavigationHelper - Class in com.example.lottery.util
Centralised helper that wires up the entrant bottom-navigation bar (layout_bottom_nav_entrant.xml) in every entrant screen.
EntrantNavigationHelper.EntrantTab - Enum Class in com.example.lottery.util
Tabs in the entrant bottom-navigation bar.
EntrantProfileActivity - Class in com.example.lottery.entrant
EntrantProfileActivity displays and manages the personal profile of an entrant user.
EntrantProfileActivity() - Constructor for class com.example.lottery.entrant.EntrantProfileActivity
 
EntrantQrScanActivity - Class in com.example.lottery.entrant
Activity for entrants to scan promotional QR codes.
EntrantQrScanActivity() - Constructor for class com.example.lottery.entrant.EntrantQrScanActivity
 
EntrantsListActivity - Class in com.example.lottery.organizer
Activity to display entrants of different status of a event by list and able to sample they
EntrantsListActivity() - Constructor for class com.example.lottery.organizer.EntrantsListActivity
 
event - Variable in class com.example.lottery.adapter.EntrantHistoryAdapter.HistoryItem
 
Event - Class in com.example.lottery.model
Model class representing an event.
Event() - Constructor for class com.example.lottery.model.Event
Default constructor required for Firestore.
Event(String, String, String, String, Integer, Integer, String, String, String, String, String, Timestamp, Timestamp, Timestamp, Timestamp, Timestamp, boolean, boolean, Timestamp, Timestamp) - Constructor for class com.example.lottery.model.Event
Full constructor for target Firestore event document.
EventAdapter - Class in com.example.lottery.adapter
Adapter for displaying a list of events in the Organizer Dashboard.
EventAdapter(List<Event>, EventAdapter.OnEventClickListener) - Constructor for class com.example.lottery.adapter.EventAdapter
 
EventAdapter.OnEventClickListener - Interface in com.example.lottery.adapter
Listener interface for handling clicks on an event item in the list.
eventComments(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: events/{eventId}/comments
eventCoOrganizers(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: events/{eventId}/coOrganizers
eventDoc(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: events/{eventId}
EVENTS - Enum constant in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
 
EVENTS - Static variable in class com.example.lottery.util.FirestorePaths
 
EventValidationUtils - Class in com.example.lottery.util
Utility class for validating event-related data.
EventValidationUtils() - Constructor for class com.example.lottery.util.EventValidationUtils
 
eventWaitingList(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: events/{eventId}/waitingList
EXPLORE - Enum constant in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
 
EXTRA_EVENT_ID - Static variable in class com.example.lottery.entrant.EntrantEventDetailsActivity
Extra key for passing the Event ID.
EXTRA_EVENT_ID - Static variable in class com.example.lottery.entrant.NotificationsActivity
 
EXTRA_EVENT_TITLE - Static variable in class com.example.lottery.entrant.NotificationsActivity
 
EXTRA_EVENT_TITLE - Static variable in class com.example.lottery.organizer.OrganizerQrCodeDetailActivity
Intent extra key for the event title.
EXTRA_QR_CONTENT - Static variable in class com.example.lottery.organizer.OrganizerQrCodeDetailActivity
Intent extra key for the QR code raw content.
EXTRA_SOURCE_TAB - Static variable in class com.example.lottery.entrant.EntrantEventDetailsActivity
Extra key for passing the source navigation tab name.
EXTRA_USER_ID - Static variable in class com.example.lottery.entrant.EntrantEventDetailsActivity
Extra key for passing the User ID.
EXTRA_USER_ID - Static variable in class com.example.lottery.entrant.NotificationsActivity
 
extractEventId(String) - Static method in class com.example.lottery.util.QRCodeUtils
Extracts the eventId from scanned QR content.

F

filteredUsers - Variable in class com.example.lottery.admin.AdminBrowseProfilesActivity
 
filterEntrants(List<User>, String) - Static method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment
Filters a list of candidates by name or email matching the query (case-insensitive).
FirestorePaths - Class in com.example.lottery.util
Centralizes all Firestore collection names and path builders to ensure consistency across the application.
fromBundle(Bundle) - Static method in class com.example.lottery.model.EntrantEvent
Reconstructs an EntrantEvent from a Bundle created by EntrantEvent.toBundle().

G

generateDefaultAvatar(String, int) - Static method in class com.example.lottery.util.AvatarUtils
Generates a default avatar bitmap with the user's initial.
generateQRCodeBitmap(String) - Static method in class com.example.lottery.util.QRCodeUtils
Generates a QR Code Bitmap from the given content string using the ZXing library.
generateTicket(Context, String, String, String) - Static method in class com.example.lottery.util.ConfirmationTicketGenerator
Generates a styled confirmation ticket PDF.
generateUniqueQrContent(String) - Static method in class com.example.lottery.util.QRCodeUtils
Generates a unique string to be used as QR code content.
getAcceptedAt() - Method in class com.example.lottery.model.EntrantEvent
 
getAdminUserId(Context) - Static method in class com.example.lottery.util.AdminRoleManager
Gets the admin user ID if this is an admin role session.
getAuthorId() - Method in class com.example.lottery.model.Comment
 
getAuthorName() - Method in class com.example.lottery.model.Comment
 
getAuthorRole() - Method in class com.example.lottery.model.Comment
 
getCancelledAt() - Method in class com.example.lottery.model.EntrantEvent
 
getCapacity() - Method in class com.example.lottery.model.Event
 
getCategory() - Method in class com.example.lottery.model.Event
 
getCommentId() - Method in class com.example.lottery.model.Comment
 
getContent() - Method in class com.example.lottery.model.Comment
 
getCreatedAt() - Method in class com.example.lottery.model.Comment
 
getCreatedAt() - Method in class com.example.lottery.model.Event
 
getCreatedAt() - Method in class com.example.lottery.model.NotificationItem
 
getCreatedAt() - Method in class com.example.lottery.model.User
 
getDetails() - Method in class com.example.lottery.model.Event
 
getDeviceId() - Method in class com.example.lottery.model.User
 
getDrawDate() - Method in class com.example.lottery.model.Event
 
getEmail() - Method in class com.example.lottery.model.EntrantEvent
 
getEmail() - Method in class com.example.lottery.model.User
Returns the email address of the user.
getEventEndDateTime() - Method in class com.example.lottery.model.Event
 
getEventId() - Method in class com.example.lottery.model.Comment
 
getEventId() - Method in class com.example.lottery.model.Event
 
getEventId() - Method in class com.example.lottery.model.NotificationItem
 
getEventTitle() - Method in class com.example.lottery.model.NotificationItem
 
getInterests() - Method in class com.example.lottery.model.User
 
getInvitedAt() - Method in class com.example.lottery.model.EntrantEvent
 
getItemCount() - Method in class com.example.lottery.adapter.AdminImageAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.CancelledListAdapter
get total number of rows
getItemCount() - Method in class com.example.lottery.adapter.CommentAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.EntrantEventAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.EntrantHistoryAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.EventAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.InvitedListAdapter
get total number of rows
getItemCount() - Method in class com.example.lottery.adapter.NotificationAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.NotificationLogAdapter
Returns the total number of log items.
getItemCount() - Method in class com.example.lottery.adapter.NotSelectedListAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.OrganizerNotificationEventAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.OrganizerQrEventAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.SignedUpListAdapter
 
getItemCount() - Method in class com.example.lottery.adapter.WaitedListedListAdapter
get total number of rows
getItemCount() - Method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter
 
getLocation() - Method in class com.example.lottery.model.EntrantEvent
 
getLocation() - Method in class com.example.lottery.model.User
 
getMessage() - Method in class com.example.lottery.model.NotificationItem
 
getNotificationId() - Method in class com.example.lottery.model.NotificationItem
 
getOrganizerId() - Method in class com.example.lottery.model.Event
 
getPhone() - Method in class com.example.lottery.model.User
 
getPlace() - Method in class com.example.lottery.model.Event
 
getPosterBase64() - Method in class com.example.lottery.model.Event
 
getProfileImageBase64() - Method in class com.example.lottery.model.User
 
getQrCodeContent() - Method in class com.example.lottery.model.Event
 
getRegisteredAt() - Method in class com.example.lottery.model.EntrantEvent
 
getRegistrationDeadline() - Method in class com.example.lottery.model.Event
 
getRegistrationStart() - Method in class com.example.lottery.model.Event
 
getRole() - Method in class com.example.lottery.model.User
 
getScheduledDateTime() - Method in class com.example.lottery.model.Event
 
getSenderId() - Method in class com.example.lottery.model.NotificationItem
 
getSenderRole() - Method in class com.example.lottery.model.NotificationItem
 
getStatus() - Method in class com.example.lottery.model.EntrantEvent
 
getStatus() - Method in class com.example.lottery.model.Event
 
getTitle() - Method in class com.example.lottery.model.Event
 
getTitle() - Method in class com.example.lottery.model.NotificationItem
 
getType() - Method in class com.example.lottery.model.NotificationItem
 
getUpdatedAt() - Method in class com.example.lottery.model.Comment
 
getUpdatedAt() - Method in class com.example.lottery.model.Event
 
getUpdatedAt() - Method in class com.example.lottery.model.User
 
getUserId() - Method in class com.example.lottery.model.EntrantEvent
 
getUserId() - Method in class com.example.lottery.model.User
 
getUsername() - Method in class com.example.lottery.model.User
 
getUserName() - Method in class com.example.lottery.model.EntrantEvent
 
getView(int, View, ViewGroup) - Method in class com.example.lottery.adapter.EntrantAdapter
 
getView(int, View, ViewGroup) - Method in class com.example.lottery.adapter.ProfileAdapter
Returns a view for the user at the given position.
getWaitingListLimit() - Method in class com.example.lottery.model.Event
 
getWaitlistedAt() - Method in class com.example.lottery.model.EntrantEvent
 

H

hasAvailableSpots(Event, Map<String, Integer>, Date) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
True if the event has room on its waiting list and registration is still open.
hasCustomImage(String, String) - Static method in class com.example.lottery.util.ProfileImageHelper
Determines whether a custom profile image currently exists, considering both the in-progress selection and the persisted state.
HistoryItem(Event, String) - Constructor for class com.example.lottery.adapter.EntrantHistoryAdapter.HistoryItem
Creates a new HistoryItem.
HOME - Enum constant in enum class com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab
 

I

IMAGES - Enum constant in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
 
ImageViewHolder(View) - Constructor for class com.example.lottery.adapter.AdminImageAdapter.ImageViewHolder
Constructs an ImageViewHolder.
INBOX - Static variable in class com.example.lottery.util.FirestorePaths
 
InvitationFlowUtil - Class in com.example.lottery.util
Utility class that centralizes invitation status transitions and notification response handling.
InvitedListAdapter - Class in com.example.lottery.adapter
Adapter for invited entrants RecyclerView to display a list of entrants that have been invited to the specific event
InvitedListAdapter(Context, List<EntrantEvent>) - Constructor for class com.example.lottery.adapter.InvitedListAdapter
data is passed into the constructor
InvitedListAdapter.ViewHolder - Class in com.example.lottery.adapter
stores and recycles views as they are scrolled off screen
isAccepted() - Method in class com.example.lottery.model.EntrantEvent
 
isAdmin() - Method in class com.example.lottery.model.User
 
isAdminRoleSession(Context) - Static method in class com.example.lottery.util.AdminRoleManager
Checks if the current session is an admin using a role profile.
isCancelled() - Method in class com.example.lottery.model.EntrantEvent
 
isDeleted() - Method in class com.example.lottery.model.Comment
 
isDrawDateValid(Date, Date, Date) - Static method in class com.example.lottery.util.EventValidationUtils
Validates the draw date against the rest of the event timeline.
isEntrant() - Method in class com.example.lottery.model.User
 
isEventEndDateValid(Date, Date) - Static method in class com.example.lottery.util.EventValidationUtils
Validates that the event end date is after the event start date.
isGeolocationEnabled() - Method in class com.example.lottery.model.User
 
isInvited() - Method in class com.example.lottery.model.EntrantEvent
 
isNewEvent(Event, Date) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
True if the event was created within the last seven days.
isNotificationsEnabled() - Method in class com.example.lottery.model.User
 
isOrganizer() - Method in class com.example.lottery.model.User
 
isPrivate() - Method in class com.example.lottery.model.Event
 
isRead() - Method in class com.example.lottery.model.NotificationItem
 
isRecommendedEvent(Event, List<String>) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
True if the event's category matches any stored user interest.
isRegistrationDeadlineValid(Date, Date) - Static method in class com.example.lottery.util.EventValidationUtils
Validates if the registration deadline occurs before the event start time.
isRegistrationStartValid(Date, Date) - Static method in class com.example.lottery.util.EventValidationUtils
Validates that registration start is before registration end.
isRequireLocation() - Method in class com.example.lottery.model.Event
 
isRequireLocation() - Method in class com.example.lottery.organizer.EntrantsListActivity
 
isWaitlisted() - Method in class com.example.lottery.model.EntrantEvent
 

L

load(ImageView, Object, int) - Static method in class com.example.lottery.util.PosterImageLoader
Loads a poster image into the provided ImageView using Glide with a placeholder fallback.
LOGS - Enum constant in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
 
LotteryApplication - Class in com.example.lottery
Base class for maintaining global application state.
LotteryApplication() - Constructor for class com.example.lottery.LotteryApplication
 

M

MainActivity - Class in com.example.lottery
MainActivity serves as the entry point where users choose their role.
MainActivity() - Constructor for class com.example.lottery.MainActivity
 
matchesBrowseTab(Event, String, Date, List<String>) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
Dispatches to the predicate for the selected browse tab.
matchesCategory(Event, String) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
True if the event category matches the selected filter.
matchesSearchQuery(Event, String) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
Case-insensitive substring match of the event title against the query.
matchesTimeFilter(Event, String, Date) - Static method in class com.example.lottery.util.EntrantEventFilterUtils
True if the event's scheduled time falls within the selected time window.
MY_EVENTS - Enum constant in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
 

N

newInstance() - Static method in class com.example.lottery.fragment.NotificationFragment
Initializes and returns a new NotificationFragment with a default title.
newInstance() - Static method in class com.example.lottery.fragment.SampleFragment
initialize a new fragment
newInstance(long) - Static method in class com.example.lottery.fragment.SampleFragment
Creates a new fragment with a pre-filled default sample size.
newInstance(EntrantEvent, boolean) - Static method in class com.example.lottery.fragment.EntrantDetailsFragment
 
newInstance(EntrantEvent, boolean, String) - Static method in class com.example.lottery.fragment.EntrantDetailsFragment
 
newInstance(String) - Static method in class com.example.lottery.fragment.NotificationFragment
Initializes and returns a new NotificationFragment with a specific title.
newInstance(String, String, String) - Static method in class com.example.lottery.fragment.CommentBottomSheet
Creates a new instance for an entrant viewer.
newInstance(String, String, String) - Static method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment
 
newInstance(String, String, String) - Static method in class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
Creates a new instance of this dialog.
newInstance(String, String, String, boolean) - Static method in class com.example.lottery.fragment.CommentBottomSheet
Creates a new instance with an optional organizer flag.
newInstanceForAdmin(String) - Static method in class com.example.lottery.fragment.CommentBottomSheet
Creates a read-only instance for an admin (comment input is hidden).
NONE - Enum constant in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
 
normalizeEntrantStatus(String) - Static method in class com.example.lottery.util.InvitationFlowUtil
Normalizes a raw entrant status string into its canonical form.
normalizeNotificationResponse(String) - Static method in class com.example.lottery.util.InvitationFlowUtil
Normalizes a raw notification response string into its canonical form.
NotificationAdapter - Class in com.example.lottery.adapter
Adapter used to display notifications in a RecyclerView.
NotificationAdapter(List<NotificationItem>, NotificationAdapter.OnNotificationClickListener) - Constructor for class com.example.lottery.adapter.NotificationAdapter
Creates a new NotificationAdapter.
NotificationAdapter.NotificationViewHolder - Class in com.example.lottery.adapter
ViewHolder that caches references to the notification item's UI components.
NotificationAdapter.OnNotificationClickListener - Interface in com.example.lottery.adapter
Callback interface invoked when a notification item is clicked.
notificationDoc(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: notifications/{notificationId}
NotificationFragment - Class in com.example.lottery.fragment
DialogFragment used by Organizers to input a notification message.
NotificationFragment() - Constructor for class com.example.lottery.fragment.NotificationFragment
 
NotificationFragment.NotificationListener - Interface in com.example.lottery.fragment
Interface for components that handle the actual notification sending logic.
NotificationItem - Class in com.example.lottery.model
Model class representing a notification in a user's inbox.
NotificationItem() - Constructor for class com.example.lottery.model.NotificationItem
Default constructor for Firestore serialization.
NotificationItem(String, String, String, String, String, String, String, String, boolean, Timestamp) - Constructor for class com.example.lottery.model.NotificationItem
Full constructor for a user inbox notification.
NotificationLogAdapter - Class in com.example.lottery.adapter
Displays organizer notification logs in the admin log browser.
NotificationLogAdapter(List<Map<String, Object>>) - Constructor for class com.example.lottery.adapter.NotificationLogAdapter
 
notificationRecipients(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: notifications/{notificationId}/recipients
NOTIFICATIONS - Enum constant in enum class com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab
 
NOTIFICATIONS - Static variable in class com.example.lottery.util.FirestorePaths
 
NotificationsActivity - Class in com.example.lottery.entrant
Activity that displays a list of notifications for the currently logged-in entrant.
NotificationsActivity() - Constructor for class com.example.lottery.entrant.NotificationsActivity
 
NotificationViewHolder(View) - Constructor for class com.example.lottery.adapter.NotificationAdapter.NotificationViewHolder
Creates a new NotificationViewHolder.
NotSelectedListAdapter - Class in com.example.lottery.adapter
Adapter for entrants who were not selected during the lottery draw.
NotSelectedListAdapter(Context, List<EntrantEvent>) - Constructor for class com.example.lottery.adapter.NotSelectedListAdapter
 
NotSelectedListAdapter.ViewHolder - Class in com.example.lottery.adapter
ViewHolder that caches references to the entrant list item's UI components.

O

onAttach(Context) - Method in class com.example.lottery.fragment.NotificationFragment
Attaches the fragment to its context and ensures it implements the NotificationFragment.NotificationListener.
onAttach(Context) - Method in class com.example.lottery.fragment.SampleFragment
check whether implemented the communication channel or not
onBindViewHolder(AdminImageAdapter.ImageViewHolder, int) - Method in class com.example.lottery.adapter.AdminImageAdapter
 
onBindViewHolder(CancelledListAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.CancelledListAdapter
binds the data to the TextView in each row
onBindViewHolder(CommentAdapter.CommentViewHolder, int) - Method in class com.example.lottery.adapter.CommentAdapter
 
onBindViewHolder(EntrantEventAdapter.EntrantEventViewHolder, int) - Method in class com.example.lottery.adapter.EntrantEventAdapter
 
onBindViewHolder(EntrantHistoryAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.EntrantHistoryAdapter
 
onBindViewHolder(EventAdapter.EventViewHolder, int) - Method in class com.example.lottery.adapter.EventAdapter
 
onBindViewHolder(InvitedListAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.InvitedListAdapter
binds the data to the TextView in each row
onBindViewHolder(NotificationAdapter.NotificationViewHolder, int) - Method in class com.example.lottery.adapter.NotificationAdapter
 
onBindViewHolder(NotificationLogAdapter.LogViewHolder, int) - Method in class com.example.lottery.adapter.NotificationLogAdapter
Binds log data to the given ViewHolder.
onBindViewHolder(NotSelectedListAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.NotSelectedListAdapter
 
onBindViewHolder(OrganizerNotificationEventAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.OrganizerNotificationEventAdapter
 
onBindViewHolder(OrganizerQrEventAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.OrganizerQrEventAdapter
 
onBindViewHolder(SignedUpListAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.SignedUpListAdapter
get total number of rows
onBindViewHolder(WaitedListedListAdapter.ViewHolder, int) - Method in class com.example.lottery.adapter.WaitedListedListAdapter
binds the data to the TextView in each row
onBindViewHolder(OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter.ViewHolder, int) - Method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter
 
onCreate() - Method in class com.example.lottery.LotteryApplication
 
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminBrowseEventsActivity
 
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminBrowseImagesActivity
 
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminBrowseLogsActivity
Sets up the RecyclerView, adapter, and bottom navigation.
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminBrowseProfilesActivity
Initializes the activity, binds UI views, sets up filtering and deletion controls, and loads all user profiles from Firestore.
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminEventDetailsActivity
Initializes the activity, sets up UI components, and retrieves the event ID from the intent.
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminImageDetailsActivity
 
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminProfileActivity
 
onCreate(Bundle) - Method in class com.example.lottery.admin.AdminSignInActivity
Initialize the activity and binds UI views.
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantEventDetailsActivity
Initializes the activity, sets up view references, and triggers initial data loading.
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantEventHistoryActivity
 
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantLotteryGuidelinesActivity
 
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantMainActivity
 
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantProfileActivity
 
onCreate(Bundle) - Method in class com.example.lottery.entrant.EntrantQrScanActivity
 
onCreate(Bundle) - Method in class com.example.lottery.entrant.NotificationsActivity
 
onCreate(Bundle) - Method in class com.example.lottery.fragment.CommentBottomSheet
 
onCreate(Bundle) - Method in class com.example.lottery.fragment.EntrantDetailsFragment
 
onCreate(Bundle) - Method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment
 
onCreate(Bundle) - Method in class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
 
onCreate(Bundle) - Method in class com.example.lottery.fragment.OrganizerUploadPosterDialogFragment
Initializes the ActivityResultLauncher for picking images from the device storage.
onCreate(Bundle) - Method in class com.example.lottery.MainActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.EntrantsListActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerBrowseEventsActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerCreateEventActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerEventDetailsActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerLotteryGuidelinesActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerNotificationsActivity
 
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerProfileActivity
Initializes the activity, sets up the layout, and configures UI components.
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerQrCodeDetailActivity
Initializes the activity, sets up the Toolbar with back navigation, retrieves the event title and QR content from the launching Intent, and generates and displays the QR code bitmap.
onCreate(Bundle) - Method in class com.example.lottery.organizer.OrganizerQrEventListActivity
Initializes the activity, sets up the Toolbar with back navigation, configures the RecyclerView and adapter, and triggers event loading from Firestore.
onCreate(Bundle) - Method in class com.example.lottery.organizer.WaitingListActivity
 
onCreateDialog(Bundle) - Method in class com.example.lottery.fragment.NotificationFragment
Creates and returns the notification composition dialog.
onCreateDialog(Bundle) - Method in class com.example.lottery.fragment.OrganizerUploadPosterDialogFragment
Creates and returns the dialog for this fragment.
onCreateDialog(Bundle) - Method in class com.example.lottery.fragment.SampleFragment
assemble the fragment
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.lottery.fragment.CommentBottomSheet
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.lottery.fragment.EntrantDetailsFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.AdminImageAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.CancelledListAdapter
inflates the row layout from xml when needed
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.CommentAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.EntrantEventAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.EntrantHistoryAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.EventAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.InvitedListAdapter
inflates the row layout from xml when needed
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.NotificationAdapter
Creates a new ViewHolder for notification items.
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.NotificationLogAdapter
Creates a new ViewHolder for a log item.
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.NotSelectedListAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.OrganizerNotificationEventAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.OrganizerQrEventAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.SignedUpListAdapter
inflates the row layout from xml when needed
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.adapter.WaitedListedListAdapter
inflates the row layout from xml when needed
onCreateViewHolder(ViewGroup, int) - Method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter
 
onDestroy() - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onDestroy() - Method in class com.example.lottery.organizer.EntrantsListActivity
remove map allocated resources
onDestroyView() - Method in class com.example.lottery.fragment.CommentBottomSheet
 
onDestroyView() - Method in class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
 
onEventClick(Event) - Method in interface com.example.lottery.adapter.EntrantEventAdapter.OnEventClickListener
 
onEventClick(Event) - Method in interface com.example.lottery.adapter.EventAdapter.OnEventClickListener
 
onEventClick(Event) - Method in interface com.example.lottery.adapter.OrganizerQrEventAdapter.OnEventClickListener
Called when an event item has been clicked.
onEventClick(Event) - Method in class com.example.lottery.admin.AdminBrowseEventsActivity
Handles clicks on individual event items in the RecyclerView.
onEventClick(Event) - Method in class com.example.lottery.organizer.OrganizerBrowseEventsActivity
 
onGroupClick(Event, String) - Method in interface com.example.lottery.adapter.OrganizerNotificationEventAdapter.OnNotificationGroupClickListener
Called when a specific group (Waitlist, Invited, Accepted, or Cancelled) is clicked for an event.
onGroupClick(Event, String) - Method in class com.example.lottery.organizer.OrganizerNotificationsActivity
 
onImageClick(Event) - Method in interface com.example.lottery.adapter.AdminImageAdapter.OnImageClickListener
Called when an image item has been clicked.
onImageClick(Event) - Method in class com.example.lottery.admin.AdminBrowseImagesActivity
Handles clicks on individual image items in the RecyclerView.
onItemClick(Event) - Method in interface com.example.lottery.adapter.EntrantHistoryAdapter.OnItemClickListener
Called when an entrant taps a history item.
onLowMemory() - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onMapReady(GoogleMap) - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onNotificationClick(NotificationItem) - Method in interface com.example.lottery.adapter.NotificationAdapter.OnNotificationClickListener
Called when a notification item is clicked.
onNotificationClick(NotificationItem) - Method in class com.example.lottery.entrant.NotificationsActivity
 
onPause() - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onResume() - Method in class com.example.lottery.admin.AdminBrowseEventsActivity
 
onResume() - Method in class com.example.lottery.admin.AdminBrowseImagesActivity
 
onResume() - Method in class com.example.lottery.admin.AdminBrowseLogsActivity
Reloads logs each time the activity is resumed.
onResume() - Method in class com.example.lottery.admin.AdminBrowseProfilesActivity
 
onResume() - Method in class com.example.lottery.admin.AdminEventDetailsActivity
Fetches the latest event details from Firestore whenever the activity resumes.
onResume() - Method in class com.example.lottery.admin.AdminImageDetailsActivity
Fetches the latest event details from Firestore whenever the activity resumes.
onResume() - Method in class com.example.lottery.entrant.EntrantEventDetailsActivity
Refreshes data when the activity returns to the foreground.
onResume() - Method in class com.example.lottery.entrant.EntrantMainActivity
 
onResume() - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onResume() - Method in class com.example.lottery.entrant.EntrantQrScanActivity
 
onResume() - Method in class com.example.lottery.entrant.NotificationsActivity
 
onResume() - Method in class com.example.lottery.organizer.OrganizerBrowseEventsActivity
 
onResume() - Method in class com.example.lottery.organizer.OrganizerEventDetailsActivity
 
onSaveInstanceState(Bundle) - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onStart() - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onStart() - Method in class com.example.lottery.fragment.EntrantDetailsFragment
 
onStart() - Method in class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment
 
onStart() - Method in class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
 
onStop() - Method in class com.example.lottery.entrant.EntrantEventDetailsActivity
Removes active listeners when the activity stops.
onStop() - Method in class com.example.lottery.entrant.EntrantMapActivity
 
onUserClick(User) - Method in interface com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter.OnUserClickListener
 
onViewCreated(View, Bundle) - Method in class com.example.lottery.fragment.EntrantDetailsFragment
 
onViewCreated(View, Bundle) - Method in class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
 
openImagePicker(ActivityResultLauncher<Intent>) - Static method in class com.example.lottery.util.ProfileImageHelper
Launches the system image picker.
OrganizerBrowseEventsActivity - Class in com.example.lottery.organizer
OrganizerBrowseEventsActivity serves as the organizer event browser, displaying a summary of published events.
OrganizerBrowseEventsActivity() - Constructor for class com.example.lottery.organizer.OrganizerBrowseEventsActivity
 
OrganizerCreateEventActivity - Class in com.example.lottery.organizer
Activity for organizers to create or edit events.
OrganizerCreateEventActivity() - Constructor for class com.example.lottery.organizer.OrganizerCreateEventActivity
 
OrganizerEventDetailsActivity - Class in com.example.lottery.organizer
Activity to display the details of a specific event and handle registration.
OrganizerEventDetailsActivity() - Constructor for class com.example.lottery.organizer.OrganizerEventDetailsActivity
 
OrganizerInviteCoOrganizerDialogFragment - Class in com.example.lottery.fragment
DialogFragment that lets an organizer manage (view, remove, and add) co-organizers for a specific event.
OrganizerInviteCoOrganizerDialogFragment() - Constructor for class com.example.lottery.fragment.OrganizerInviteCoOrganizerDialogFragment
 
OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter - Class in com.example.lottery.fragment
RecyclerView adapter backing the co-organizer search results list.
OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter.OnUserClickListener - Interface in com.example.lottery.fragment
Listener interface for handling selection of a user from the search results.
OrganizerInviteCoOrganizerDialogFragment.UserSearchAdapter.ViewHolder - Class in com.example.lottery.fragment
ViewHolder that caches the two text fields used to render a user search result row.
OrganizerInviteEntrantDialogFragment - Class in com.example.lottery.fragment
DialogFragment that lets an organizer search for entrants by name, email, or phone and directly invite them to an event's waiting list.
OrganizerInviteEntrantDialogFragment() - Constructor for class com.example.lottery.fragment.OrganizerInviteEntrantDialogFragment
 
OrganizerLotteryGuidelinesActivity - Class in com.example.lottery.organizer
Activity that displays the lottery guidelines and rules for organizers.
OrganizerLotteryGuidelinesActivity() - Constructor for class com.example.lottery.organizer.OrganizerLotteryGuidelinesActivity
 
organizerName - Variable in class com.example.lottery.adapter.EntrantHistoryAdapter.HistoryItem
 
OrganizerNavigationHelper - Class in com.example.lottery.util
Centralised helper that wires up the organizer bottom-navigation bar (layout_bottom_nav_organizer.xml) in every organizer screen.
OrganizerNavigationHelper.OrganizerTab - Enum Class in com.example.lottery.util
Tabs in the organizer bottom-navigation bar.
OrganizerNotificationEventAdapter - Class in com.example.lottery.adapter
Adapter for displaying events in the Organizer Notifications screen.
OrganizerNotificationEventAdapter(List<Event>, OrganizerNotificationEventAdapter.OnNotificationGroupClickListener) - Constructor for class com.example.lottery.adapter.OrganizerNotificationEventAdapter
Constructs a new OrganizerNotificationEventAdapter.
OrganizerNotificationEventAdapter.OnNotificationGroupClickListener - Interface in com.example.lottery.adapter
Listener interface for handling clicks on notification group buttons.
OrganizerNotificationEventAdapter.ViewHolder - Class in com.example.lottery.adapter
ViewHolder class for caching UI component references in each list item.
OrganizerNotificationsActivity - Class in com.example.lottery.organizer
Activity that allows organizers to manage and send notifications to different groups of entrants.
OrganizerNotificationsActivity() - Constructor for class com.example.lottery.organizer.OrganizerNotificationsActivity
 
OrganizerProfileActivity - Class in com.example.lottery.organizer
Activity class representing the profile screen for an organizer.
OrganizerProfileActivity() - Constructor for class com.example.lottery.organizer.OrganizerProfileActivity
 
OrganizerQrCodeDetailActivity - Class in com.example.lottery.organizer
Activity for displaying the large QR code for a specific event.
OrganizerQrCodeDetailActivity() - Constructor for class com.example.lottery.organizer.OrganizerQrCodeDetailActivity
 
OrganizerQrEventAdapter - Class in com.example.lottery.adapter
Adapter for displaying events in the QR code selection list.
OrganizerQrEventAdapter(List<Event>, OrganizerQrEventAdapter.OnEventClickListener) - Constructor for class com.example.lottery.adapter.OrganizerQrEventAdapter
Constructs a new OrganizerQrEventAdapter.
OrganizerQrEventAdapter.OnEventClickListener - Interface in com.example.lottery.adapter
Interface definition for a callback to be invoked when an event item is clicked.
OrganizerQrEventListActivity - Class in com.example.lottery.organizer
Activity that displays a list of events for the organizer to select and view their QR codes.
OrganizerQrEventListActivity() - Constructor for class com.example.lottery.organizer.OrganizerQrEventListActivity
 
OrganizerUploadPosterDialogFragment - Class in com.example.lottery.fragment
DialogFragment for handling event poster selection and preview.
OrganizerUploadPosterDialogFragment() - Constructor for class com.example.lottery.fragment.OrganizerUploadPosterDialogFragment
 
overrideTabWithoutFinish(Activity, AdminNavigationHelper.AdminTab, String) - Static method in class com.example.lottery.util.AdminNavigationHelper
Re-wires a single tab so it navigates to the target Activity without calling finish() on the source.

P

PosterImageLoader - Class in com.example.lottery.util
Centralizes poster image loading so screens can render either local URIs, remote download URLs, or Base64 encoded strings.
PREFS_NAME - Static variable in class com.example.lottery.LotteryApplication
 
ProcessedImage(String, Bitmap) - Constructor for class com.example.lottery.util.ProfileImageHelper.ProcessedImage
 
processSelectedImage(ContentResolver, Uri) - Static method in class com.example.lottery.util.ProfileImageHelper
Processes a picked image URI: decodes, scales to avatar size, compresses to JPEG, and returns both the Base64 string and the scaled bitmap.
PROFILE - Enum constant in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
 
PROFILE - Enum constant in enum class com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab
 
ProfileAdapter - Class in com.example.lottery.adapter
Adapter class for displaying user profiles in a list.
ProfileAdapter(Context, ArrayList<User>) - Constructor for class com.example.lottery.adapter.ProfileAdapter
Creates an adapter for displaying a list of users.
ProfileImageHelper - Class in com.example.lottery.util
Shared helper for profile image operations.
ProfileImageHelper.ProcessedImage - Class in com.example.lottery.util
Holds the result of processing a picked image.
PROFILES - Enum constant in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
 
promoteOneFromWaitlistIfNeeded(FirebaseFirestore, String) - Static method in class com.example.lottery.util.WaitlistPromotionUtil
Checks for available capacity and promotes one waitlisted entrant if possible.

Q

QR_CODE - Enum constant in enum class com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab
 
QR_SCAN - Enum constant in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
 
QRCodeUtils - Class in com.example.lottery.util
Utility class for QR code related operations.
QRCodeUtils() - Constructor for class com.example.lottery.util.QRCodeUtils
 

R

RECIPIENTS - Static variable in class com.example.lottery.util.FirestorePaths
 
resolveDisplayStatus(Event) - Static method in class com.example.lottery.adapter.EventAdapter
 
resolveUserId(Activity) - Static method in class com.example.lottery.util.SessionUtil
Resolves the user ID by checking the Intent extra first, then falling back to SharedPreferences.
RESPONSE_ACCEPTED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
RESPONSE_CANCELLED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
RESPONSE_DECLINED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
RESPONSE_DISMISSED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
RESPONSE_NONE - Static variable in class com.example.lottery.util.InvitationFlowUtil
 

S

SampleFragment - Class in com.example.lottery.fragment
fragment for user to enter the number of invitations they want to send
SampleFragment() - Constructor for class com.example.lottery.fragment.SampleFragment
 
SampleFragment.SamplingListener - Interface in com.example.lottery.fragment
interface for the activity who want to use the sample fragment to implement, like a communication channel
sampling(String) - Method in interface com.example.lottery.fragment.SampleFragment.SamplingListener
 
sampling(String) - Method in class com.example.lottery.organizer.EntrantsListActivity
implement US 02.05.02, randomly sample a specific number of signed up entrants from the attendees
sendNotification(String) - Method in interface com.example.lottery.fragment.NotificationFragment.NotificationListener
Called when the organizer clicks "Send" with the provided message content.
sendNotification(String) - Method in class com.example.lottery.organizer.OrganizerNotificationsActivity
 
SessionUtil - Class in com.example.lottery.util
Utility for resolving the current user ID from Intent extras with a SharedPreferences fallback.
setAcceptedAt(Timestamp) - Method in class com.example.lottery.model.EntrantEvent
 
setAdminRoleSession(Context, String) - Static method in class com.example.lottery.util.AdminRoleManager
Marks the current session as an admin using a role profile.
setAuthorId(String) - Method in class com.example.lottery.model.Comment
 
setAuthorName(String) - Method in class com.example.lottery.model.Comment
 
setAuthorRole(String) - Method in class com.example.lottery.model.Comment
 
setCancelledAt(Timestamp) - Method in class com.example.lottery.model.EntrantEvent
 
setCapacity(Integer) - Method in class com.example.lottery.model.Event
 
setCategory(String) - Method in class com.example.lottery.model.Event
 
setCommentId(String) - Method in class com.example.lottery.model.Comment
 
setContent(String) - Method in class com.example.lottery.model.Comment
 
setCreatedAt(Timestamp) - Method in class com.example.lottery.model.Comment
 
setCreatedAt(Timestamp) - Method in class com.example.lottery.model.Event
 
setCreatedAt(Timestamp) - Method in class com.example.lottery.model.NotificationItem
 
setCreatedAt(Timestamp) - Method in class com.example.lottery.model.User
 
setDeleted(boolean) - Method in class com.example.lottery.model.Comment
 
setDetails(String) - Method in class com.example.lottery.model.Event
 
setDeviceId(String) - Method in class com.example.lottery.model.User
 
setDrawDate(Timestamp) - Method in class com.example.lottery.model.Event
 
setEmail(String) - Method in class com.example.lottery.model.EntrantEvent
 
setEmail(String) - Method in class com.example.lottery.model.User
 
setEventEndDateTime(Timestamp) - Method in class com.example.lottery.model.Event
 
setEventId(String) - Method in class com.example.lottery.model.Comment
 
setEventId(String) - Method in class com.example.lottery.model.Event
 
setEventId(String) - Method in class com.example.lottery.model.NotificationItem
 
setEventSpecificMode(boolean) - Method in class com.example.lottery.adapter.NotificationAdapter
Sets whether the adapter is operating in event-specific mode.
setEventTitle(String) - Method in class com.example.lottery.model.NotificationItem
 
setGeolocationEnabled(boolean) - Method in class com.example.lottery.model.User
 
setInterests(List<String>) - Method in class com.example.lottery.model.User
 
setInvitedAt(Timestamp) - Method in class com.example.lottery.model.EntrantEvent
 
setLocation(GeoPoint) - Method in class com.example.lottery.model.EntrantEvent
 
setLocation(GeoPoint) - Method in class com.example.lottery.model.User
 
setMessage(String) - Method in class com.example.lottery.model.NotificationItem
 
setNotificationId(String) - Method in class com.example.lottery.model.NotificationItem
 
setNotificationsEnabled(boolean) - Method in class com.example.lottery.model.User
 
setOrganizerId(String) - Method in class com.example.lottery.model.Event
 
setPhone(String) - Method in class com.example.lottery.model.User
 
setPlace(String) - Method in class com.example.lottery.model.Event
 
setPosterBase64(String) - Method in class com.example.lottery.model.Event
 
setPrivate(boolean) - Method in class com.example.lottery.model.Event
 
setProfileImageBase64(String) - Method in class com.example.lottery.model.User
 
setQrCodeContent(String) - Method in class com.example.lottery.model.Event
 
setRead(boolean) - Method in class com.example.lottery.model.NotificationItem
 
setRegisteredAt(Timestamp) - Method in class com.example.lottery.model.EntrantEvent
 
setRegistrationDeadline(Timestamp) - Method in class com.example.lottery.model.Event
 
setRegistrationStart(Timestamp) - Method in class com.example.lottery.model.Event
 
setRequireLocation(boolean) - Method in class com.example.lottery.model.Event
 
setRole(String) - Method in class com.example.lottery.model.User
 
setScheduledDateTime(Timestamp) - Method in class com.example.lottery.model.Event
 
setSenderId(String) - Method in class com.example.lottery.model.NotificationItem
 
setSenderRole(String) - Method in class com.example.lottery.model.NotificationItem
 
setStatus(String) - Method in class com.example.lottery.model.EntrantEvent
 
setStatus(String) - Method in class com.example.lottery.model.Event
 
SETTINGS - Enum constant in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
 
setTitle(String) - Method in class com.example.lottery.model.Event
 
setTitle(String) - Method in class com.example.lottery.model.NotificationItem
 
setType(String) - Method in class com.example.lottery.model.NotificationItem
 
setup(Activity, AdminNavigationHelper.AdminTab, String) - Static method in class com.example.lottery.util.AdminNavigationHelper
Highlights the active tab and wires every tab's click listener.
setup(Activity, AdminNavigationHelper.AdminTab, String, boolean) - Static method in class com.example.lottery.util.AdminNavigationHelper
Highlights the active tab and wires every tab's click listener.
setup(Activity, EntrantNavigationHelper.EntrantTab, String) - Static method in class com.example.lottery.util.EntrantNavigationHelper
Highlights the active tab and wires every tab's click listener.
setup(Activity, EntrantNavigationHelper.EntrantTab, String, boolean) - Static method in class com.example.lottery.util.EntrantNavigationHelper
Highlights the active tab and wires every tab's click listener.
setup(Activity, OrganizerNavigationHelper.OrganizerTab, String) - Static method in class com.example.lottery.util.OrganizerNavigationHelper
Highlights the active tab and wires every tab's click listener, including the centre Create-Event FAB.
setup(Activity, OrganizerNavigationHelper.OrganizerTab, String, boolean) - Static method in class com.example.lottery.util.OrganizerNavigationHelper
Highlights the active tab and wires every tab's click listener, including the centre Create-Event FAB.
setUpdatedAt(Timestamp) - Method in class com.example.lottery.model.Comment
 
setUpdatedAt(Timestamp) - Method in class com.example.lottery.model.Event
 
setUpdatedAt(Timestamp) - Method in class com.example.lottery.model.User
 
setUserId(String) - Method in class com.example.lottery.model.EntrantEvent
 
setUserId(String) - Method in class com.example.lottery.model.User
 
setUsername(String) - Method in class com.example.lottery.model.User
 
setUserName(String) - Method in class com.example.lottery.model.EntrantEvent
 
setWaitingListLimit(Integer) - Method in class com.example.lottery.model.Event
 
setWaitlistedAt(Timestamp) - Method in class com.example.lottery.model.EntrantEvent
 
showAvatarOptions(Activity, boolean, Runnable, Runnable) - Static method in class com.example.lottery.util.ProfileImageHelper
Shows avatar options: if no image exists, runs onPickImage directly; otherwise shows a bottom sheet with "Change photo" and "Remove photo" options.
showDefaultAvatar(ImageView, ImageView, String) - Static method in class com.example.lottery.util.ProfileImageHelper
Shows a deterministic, initial-based default avatar.
showDeleteConfirmationDialog(User) - Method in class com.example.lottery.admin.AdminBrowseProfilesActivity
Show AlertDialog with user's name and ask for confirmation.
SignedUpListAdapter - Class in com.example.lottery.adapter
Adapter for signed up entrants RecyclerView to display a list of entrants that signed up the specific event
SignedUpListAdapter(Context, List<EntrantEvent>) - Constructor for class com.example.lottery.adapter.SignedUpListAdapter
data is passed into the constructor
SignedUpListAdapter.ViewHolder - Class in com.example.lottery.adapter
stores and recycles views as they are scrolled off screen
status - Variable in class com.example.lottery.adapter.EntrantHistoryAdapter.HistoryItem
 
STATUS_ACCEPTED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
STATUS_CANCELLED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
STATUS_INVITED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
STATUS_NOT_SELECTED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 
STATUS_WAITLISTED - Static variable in class com.example.lottery.util.InvitationFlowUtil
 

T

testEvent - Static variable in class com.example.lottery.admin.AdminImageDetailsActivity
Inject a test Event to bypass Firestore while still exercising updateUi().
TIME_ALL_DATES - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
TIME_THIS_MONTH - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
TIME_THIS_WEEK - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
TIME_TODAY - Static variable in class com.example.lottery.util.EntrantEventFilterUtils
 
toBundle() - Method in class com.example.lottery.model.EntrantEvent
Packs this object into a Bundle for safe Fragment argument passing.
touch() - Method in class com.example.lottery.model.Event
Updates the updatedAt timestamp.
touch() - Method in class com.example.lottery.model.User
Updates the updatedAt timestamp.
tvMessage - Variable in class com.example.lottery.adapter.NotificationAdapter.NotificationViewHolder
 
tvNew - Variable in class com.example.lottery.adapter.NotificationAdapter.NotificationViewHolder
 
tvResponse - Variable in class com.example.lottery.adapter.NotificationAdapter.NotificationViewHolder
 
tvTitle - Variable in class com.example.lottery.adapter.NotificationAdapter.NotificationViewHolder
 
tvType - Variable in class com.example.lottery.adapter.NotificationAdapter.NotificationViewHolder
 

U

User - Class in com.example.lottery.model
Model class representing a user in the system.
User() - Constructor for class com.example.lottery.model.User
Default constructor required for Firestore.
User(String, String, String, String) - Constructor for class com.example.lottery.model.User
Convenience constructor for basic profile information with userId.
User(String, String, String, String, String, String, GeoPoint, boolean, Timestamp, Timestamp, List<String>) - Constructor for class com.example.lottery.model.User
Full constructor.
UserDeletionUtil - Class in com.example.lottery.util
Utility for cleaning up user-related records before deleting a user document.
userDoc(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: users/{userId}
userInbox(String) - Static method in class com.example.lottery.util.FirestorePaths
Path: users/{userId}/inbox
USERS - Static variable in class com.example.lottery.util.FirestorePaths
 

V

valueOf(String) - Static method in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.example.lottery.util.AdminNavigationHelper.AdminTab
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.example.lottery.util.EntrantNavigationHelper.EntrantTab
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class com.example.lottery.util.OrganizerNavigationHelper.OrganizerTab
Returns an array containing the constants of this enum class, in the order they are declared.
ViewHolder(View) - Constructor for class com.example.lottery.adapter.OrganizerNotificationEventAdapter.ViewHolder
 

W

WaitedListedListAdapter - Class in com.example.lottery.adapter
Adapter for waited listed entrants RecyclerView to display a list of entrants that joined the specific event but not invited
WaitedListedListAdapter(Context, List<EntrantEvent>) - Constructor for class com.example.lottery.adapter.WaitedListedListAdapter
data is passed into the constructor
WaitedListedListAdapter.ViewHolder - Class in com.example.lottery.adapter
stores and recycles views as they are scrolled off screen
WAITING_LIST - Static variable in class com.example.lottery.util.FirestorePaths
 
WaitingListActivity - Class in com.example.lottery.organizer
WaitingListActivity Displays the entrants who are currently in the waitlisted status for the selected event.
WaitingListActivity() - Constructor for class com.example.lottery.organizer.WaitingListActivity
 
WaitlistPromotionUtil - Class in com.example.lottery.util
Utility to handle automatic promotion of entrants from the waitlist when a spot opens up.
WaitlistPromotionUtil() - Constructor for class com.example.lottery.util.WaitlistPromotionUtil
 
A B C D E F G H I L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values