Comment Model
The Comment
class represents a comment on a post, capturing various attributes and interactions. Below are the details of the Comment
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | String | The unique identifier of the comment. | |
isLiked | bool | Indicates whether the comment is liked by the user. | |
isEdited | bool | Indicates whether the comment has been edited. | |
userId | String | The unique identifier of the user who created the comment. | |
text | String | The text content of the comment. | |
level | int | The level or depth of the comment in the hierarchy. | ✔ |
likesCount | int | The count of likes received by the comment. | |
repliesCount | int | The count of replies received by the comment. | |
createdAt | int | The timestamp when the comment was created. | |
updatedAt | int | The timestamp when the comment was last updated. | |
replies | List<Comment > | List of comments as replies to the comment. | ✔ |
menuItems | List<PopupMenuItemModel > | List of menu items associated with the comment. | |
parentComment | Comment | The parent comment if the comment is a reply. | |
uuid | String | The universally unique identifier (UUID) of the comment. | |
tempId | String | Temporary identifier for the comment used during creation. | ✔ |
PopupMenuItemModel
This model is used to represent the menu items for a comment.
Properties
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | int | ID of the menu item. | |
title | String | Title of the menu item. |