NotificationFeedItem Model
The NotificationFeedItem
class represents an item in the notification feed, providing information about a specific action or activity. Below are the details of the NotificationFeedItem
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | String | The unique identifier of the notification feed item. | |
action | int | The type of action or activity associated with the notification. | |
actionBy | List<String > | List of unique identifiers of users who performed the action. | |
actionOn | String | The unique identifier of the entity on which the action was performed. | |
activityEntityData | ActivityEntityData | Data related to the entity on which the action was performed. | |
activityText | String | The text or description of the activity. | |
cta | String | Call-to-action associated with the notification. | ✔ |
createdAt | int | The timestamp when the notification feed item was created. | |
entityId | String | The unique identifier of the entity associated with the notification. | |
entityOwnerId | String | The unique identifier of the owner of the entity associated with the notification. | ✔ |
entityType | int | The type of entity associated with the notification. | |
isRead | bool | Indicates whether the notification has been read. | |
updatedAt | int | The timestamp when the notification feed item was last updated. |
ActivityEntityData
The ActivityEntityData
class represents data related to an entity on which a specific action or activity was performed. This model provides details about the entity, including attachments, user interactions, and other relevant information. Below are the details of the ActivityEntityData
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | String | The unique identifier of the entity. | |
attachments | List<Attachment > | List of attachments associated with the entity. | ✔ |
chatroomId | int | The unique identifier of the associated chatroom, if applicable. | ✔ |
communityId | int | The unique identifier of the community to which the entity belongs. | |
createdAt | int | The timestamp when the entity was created. | |
deleteReason | String | The reason for deleting the entity, if applicable. | ✔ |
deleteBy | String | The unique identifier of the user who deleted the entity, if applicable. | ✔ |
heading | String | The heading or title associated with the entity. | ✔ |
level | int | The level or depth of the entity in a hierarchical structure. | ✔ |
postId | String | The unique identifier of the associated post, if applicable. | ✔ |
isDeleted | bool | Indicates whether the entity has been deleted. | ✔ |
isPinned | bool | Indicates whether the entity is pinned. | ✔ |
isEdited | bool | Indicates whether the entity has been edited. | ✔ |
text | String | The text content of the entity. | |
replies | List<Comment > | List of comments as replies to the entity. | ✔ |
updatedAt | int | The timestamp when the entity was last updated. | ✔ |
userId | String | The unique identifier of the user associated with the entity. |
UserActivityItem
The UserActivityItem
class represents an item of user activity, capturing various details related to a specific action performed by a user. This model includes information about the action, the entity on which the action was performed, and other relevant data. Below are the details of the UserActivityItem
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | String | The unique identifier of the user activity item. | |
action | int | The code or identifier representing the type of action performed. | |
actionBy | List<String > | List of unique identifiers of users who performed the action. | |
actionOn | String | The type or category of the entity on which the action was performed. | |
activityEntityData | UserActivityEntityData | The data related to the entity on which the action was performed. | |
activityText | String | The text or description of the user activity. | |
createdAt | int | The timestamp when the user activity item was created. | |
cta | String | The call-to-action associated with the user activity item, if applicable. | ✔ |
entityId | String | The unique identifier of the entity on which the action was performed. | |
entityOwnerId | String | The unique identifier of the owner of the entity, if applicable. | ✔ |
entityType | int | The code or identifier representing the type of entity on which the action was performed. | |
isRead | bool | Indicates whether the user has read the activity item. | |
updatedAt | int | The timestamp when the user activity item was last updated. | |
uuid | String | The universally unique identifier (UUID) associated with the user activity item. |
UserActivityEntityData
The UserActivityEntityData
class represents data related to the entity on which a user activity item is performed. This model captures various attributes and interactions associated with the entity. Below are the details of the UserActivityEntityData
model:
Properties
Variable | Type | Description | Optional |
---|---|---|---|
id | String | The unique identifier of the entity. | |
attachments | List<Attachment > | List of attachments associated with the entity. | ✔ |
commentsCount | int | The count of comments associated with the entity. | ✔ |
communityId | int | The unique identifier of the community to which the entity belongs. | |
createdAt | int | The timestamp when the entity was created. | |
heading | String | The heading or title associated with the entity. | ✔ |
isEdited | bool | Indicates whether the entity has been edited. | ✔ |
isLiked | bool | Indicates whether the entity is liked by the user. | ✔ |
isPinned | bool | Indicates whether the entity is pinned. | ✔ |
isSaved | bool | Indicates whether the entity is saved by the user. | ✔ |
level | int | The level or hierarchy of the entity. | ✔ |
likesCount | int | The count of likes received by the entity. | ✔ |
menuItems | List<PopupMenuItemModel > | List of menu items associated with the entity. | ✔ |
postData | Post | Data related to a post associated with the entity. | ✔ |
postId | String | The unique identifier of the associated post. | ✔ |
replies | List<Comment > | List of comments as replies to the entity. | ✔ |
tempId | String | Temporary identifier associated with the entity. | ✔ |
text | String | The text content or description of the entity. | |
topics | List<String > | List of topics associated with the entity. | ✔ |
updatedAt | int | The timestamp when the entity was last updated. | ✔ |
userId | String | The unique identifier of the user associated with the entity. | ✔ |
uuid | String | The universally unique identifier (UUID) associated with the entity. | ✔ |
isRepost | bool | Indicates whether the entity is a repost. | ✔ |
isRepostedByUser | bool | Indicates whether the entity is reposted by the user. | ✔ |
repostCount | int | The count of reposts received by the entity. | ✔ |
isDeleted | bool | Indicates whether the entity is deleted. | ✔ |