Package com.example.breeze_seas
Class PastEventUIModel
java.lang.Object
com.example.breeze_seas.PastEventUIModel
UI-facing model for archived past event history.
This is intentionally presentation-focused and does not define a Firestore schema.
-
Constructor Summary
ConstructorsConstructorDescriptionPastEventUIModel(String title, String dateLabel, String locationLabel, String statusLabel, String detailLabel, int iconResId) Creates a presentation model for one archived ticket-history card.PastEventUIModel(String eventId, String imageDocId, String title, String dateLabel, String locationLabel, String statusLabel, String detailLabel, int iconResId) Creates a presentation model for one archived ticket-history card. -
Method Summary
Modifier and TypeMethodDescriptionReturns the date string shown on the card.Returns the supporting explanation shown under the card metadata.Returns the Firestore event identifier for the related event.intReturns the drawable used for the archived ticket icon.Returns the optional event poster image document id.Returns the location string shown on the card.Returns the short status chip label for the archived ticket.getTitle()Returns the event title shown on the card.
-
Constructor Details
-
PastEventUIModel
public PastEventUIModel(String title, String dateLabel, String locationLabel, String statusLabel, String detailLabel, int iconResId) Creates a presentation model for one archived ticket-history card.- Parameters:
title- Event title shown on the card.dateLabel- Human-readable date string shown on the card.locationLabel- Human-readable location string shown on the card.statusLabel- Short status text shown in the chip.detailLabel- Supporting explanation for why the ticket is archived.iconResId- Drawable resource used for the history icon.
-
PastEventUIModel
public PastEventUIModel(@Nullable String eventId, @Nullable String imageDocId, String title, String dateLabel, String locationLabel, String statusLabel, String detailLabel, int iconResId) Creates a presentation model for one archived ticket-history card.- Parameters:
eventId- Firestore event identifier for the related event.imageDocId- Optional image document id for the event poster.title- Event title shown on the card.dateLabel- Human-readable date string shown on the card.locationLabel- Human-readable location string shown on the card.statusLabel- Short status text shown in the chip.detailLabel- Supporting explanation for why the ticket is archived.iconResId- Drawable resource used for the history icon.
-
-
Method Details
-
getTitle
Returns the event title shown on the card.- Returns:
- Event title shown on the history card.
-
getEventId
Returns the Firestore event identifier for the related event.- Returns:
- Event id, or
nullwhen unavailable.
-
getImageDocId
Returns the optional event poster image document id.- Returns:
- Firestore image document id, or
nullwhen unavailable.
-
getDateLabel
Returns the date string shown on the card.- Returns:
- Human-readable event date label.
-
getLocationLabel
Returns the location string shown on the card.- Returns:
- Human-readable location label.
-
getStatusLabel
Returns the short status chip label for the archived ticket.- Returns:
- Archived-ticket status label.
-
getDetailLabel
Returns the supporting explanation shown under the card metadata.- Returns:
- Detail label explaining the archived state.
-
getIconResId
public int getIconResId()Returns the drawable used for the archived ticket icon.- Returns:
- Drawable resource identifier.
-