Package com.example.breeze_seas
Class EventCommentUIModel
java.lang.Object
com.example.breeze_seas.EventCommentUIModel
EventCommentUIModel stores the display-ready information for one event comment row.
-
Constructor Summary
ConstructorsConstructorDescriptionEventCommentUIModel(String commentId, String authorDisplayName, String body, String timestampLabel, boolean authorIsOrganizer) Creates one comment row model for the shared comments UI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name shown for the comment author.getBody()Returns the visible comment body text.Returns the stable identifier for the comment row.Returns the visible timestamp label for the comment.booleanReturns whether this comment was authored by the organizer.
-
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
Returns the stable identifier for the comment row.- Returns:
- Comment identifier.
-
getAuthorDisplayName
Returns the display name shown for the comment author.- Returns:
- Author display name.
-
getBody
Returns the visible comment body text.- Returns:
- Comment body.
-
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:
truewhen the author is the organizer.
-