Package com.example.breeze_seas
Class AttendingTicketUIModel
java.lang.Object
com.example.breeze_seas.AttendingTicketUIModel
UI-facing model for confirmed attending tickets.
This remains separate from any eventual Firestore document shape so the repository can map backend data into ticket-specific presentation fields later.
-
Constructor Summary
ConstructorsConstructorDescriptionAttendingTicketUIModel(String eventId, String title, String dateLabel, String locationLabel, String ticketTypeLabel, String entryNote, String actionLabel) Creates a presentation model for one attending ticket card.AttendingTicketUIModel(String eventId, String title, String dateLabel, String locationLabel, String ticketTypeLabel, String entryNote, String actionLabel, String imageDocId) Creates a presentation model for one attending ticket card. -
Method Summary
Modifier and TypeMethodDescriptionReturns the label describing the available card action.Returns the date string shown on the attending ticket card.Returns the supporting note shown below the main card details.Returns the Firestore event identifier for the related event.Returns the optional event poster image document id.Returns the location string shown on the attending ticket card.Returns the ticket-type label shown on the attending ticket card.getTitle()Returns the title shown on the attending ticket card.
-
Constructor Details
-
AttendingTicketUIModel
public AttendingTicketUIModel(String eventId, String title, String dateLabel, String locationLabel, String ticketTypeLabel, String entryNote, String actionLabel) Creates a presentation model for one attending ticket card.- Parameters:
eventId- Firestore event identifier for the related event.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.ticketTypeLabel- Summary label describing the ticket type/state.entryNote- Supporting copy shown under the main ticket details.actionLabel- Label describing the tap action available on the card.
-
AttendingTicketUIModel
public AttendingTicketUIModel(String eventId, String title, String dateLabel, String locationLabel, String ticketTypeLabel, String entryNote, String actionLabel, @Nullable String imageDocId) Creates a presentation model for one attending ticket card.- Parameters:
eventId- Firestore event identifier for the related event.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.ticketTypeLabel- Summary label describing the ticket type/state.entryNote- Supporting copy shown under the main ticket details.actionLabel- Label describing the tap action available on the card.imageDocId- Optional image document id for the event poster.
-
-
Method Details
-
getEventId
Returns the Firestore event identifier for the related event.- Returns:
- Firestore event identifier.
-
getTitle
Returns the title shown on the attending ticket card.- Returns:
- Event title shown on the card.
-
getDateLabel
Returns the date string shown on the attending ticket card.- Returns:
- Human-readable event date label.
-
getLocationLabel
Returns the location string shown on the attending ticket card.- Returns:
- Human-readable location label.
-
getTicketTypeLabel
Returns the ticket-type label shown on the attending ticket card.- Returns:
- Ticket-type summary label.
-
getEntryNote
Returns the supporting note shown below the main card details.- Returns:
- Supporting entry note.
-
getActionLabel
Returns the label describing the available card action.- Returns:
- Action label shown on the card.
-
getImageDocId
Returns the optional event poster image document id.- Returns:
- Firestore image document id, or
nullwhen unavailable.
-