Class PastEventUIModel

java.lang.Object
com.example.breeze_seas.PastEventUIModel

public class PastEventUIModel extends Object
UI-facing model for archived past event history.

This is intentionally presentation-focused and does not define a Firestore schema.

  • 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

      public String getTitle()
      Returns the event title shown on the card.
      Returns:
      Event title shown on the history card.
    • getEventId

      @Nullable public String getEventId()
      Returns the Firestore event identifier for the related event.
      Returns:
      Event id, or null when unavailable.
    • getImageDocId

      @Nullable public String getImageDocId()
      Returns the optional event poster image document id.
      Returns:
      Firestore image document id, or null when unavailable.
    • getDateLabel

      public String getDateLabel()
      Returns the date string shown on the card.
      Returns:
      Human-readable event date label.
    • getLocationLabel

      public String getLocationLabel()
      Returns the location string shown on the card.
      Returns:
      Human-readable location label.
    • getStatusLabel

      public String getStatusLabel()
      Returns the short status chip label for the archived ticket.
      Returns:
      Archived-ticket status label.
    • getDetailLabel

      public String 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.