Class EventCommentUIModel

java.lang.Object
com.example.breeze_seas.EventCommentUIModel

public final class EventCommentUIModel extends Object
EventCommentUIModel stores the display-ready information for one event comment row.
  • Constructor Details

    • EventCommentUIModel

      public EventCommentUIModel(@NonNull String commentId, @NonNull String authorDisplayName, @NonNull String body, @NonNull String timestampLabel, boolean authorIsOrganizer)
      Creates one comment row model for the shared comments UI.
      Parameters:
      commentId - Stable identifier for the comment row.
      authorDisplayName - Visible author label shown in the UI.
      body - Comment text content.
      timestampLabel - Human-readable time label for the comment.
      authorIsOrganizer - Whether the comment was authored by the organizer.
  • Method Details

    • getCommentId

      @NonNull public String getCommentId()
      Returns the stable identifier for the comment row.
      Returns:
      Comment identifier.
    • getAuthorDisplayName

      @NonNull public String getAuthorDisplayName()
      Returns the display name shown for the comment author.
      Returns:
      Author display name.
    • getBody

      @NonNull public String getBody()
      Returns the visible comment body text.
      Returns:
      Comment body.
    • getTimestampLabel

      @NonNull public String getTimestampLabel()
      Returns the visible timestamp label for the comment.
      Returns:
      Formatted timestamp label.
    • isAuthorOrganizer

      public boolean isAuthorOrganizer()
      Returns whether this comment was authored by the organizer.
      Returns:
      true when the author is the organizer.