Post
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | String | Unique ID of the post. | |
text | String | Text content of the post. | |
attachments | List<Attachment> | List of attached medias in the post. Maximum size is 10. | ✔ |
communityId | Int | Unique ID of the community. | |
isLiked | Boolean | true if the user has liked the post, false otherwise. | |
isEdited | Boolean | true if the post was edited, false otherwise. | |
isPinned | Boolean | true if the post is pinned, false otherwise. | |
userId | String | Unique ID of post creator. | |
likesCount | Int | Number of users that liked the post. | |
commentsCount | Int | Number of users that commented on the post. | |
isSaved | Boolean | true if the user has saved the post, false otherwise. | |
menuItems | List<MenuItem> | List of actions as menu items on the post. | |
replies | List<Comment> | List of comments on the post. | ✔ |
createdAt | Long | Timestamp when the post was created. | |
updatedAt | Long | Timestamp when the post was last updated. | |
uuid | String | Unique ID of post creator. | |
heading | String | Heading of the post. | ✔ |
tempId | String | Temporary ID of post. | ✔ |
topicIds | List<String> | List of ids of the topics added in the post. | ✔ |
workerUUID | String | UUID of the worker responsible for uploading the local post. | ✔ |
isPosted | Boolean | true if the local post is posted, false otherwise. |
Attachment
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
attachmentType | Int | Type of attachment. 1 - Image 2 - Video 3 - Document 4 - Link | |
attachmentMeta | AttachmentMeta | Download url of attachment. |
AttachmentMeta
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
name | String | Name of the attachment. | ✔ |
url | String | Download url of attachment. | ✔ |
format | String | Format of attachment (pdf, etc.). | ✔ |
size | Long | Size of attachment in bytes. | ✔ |
duration | Int | Duration of video attachment in seconds. | ✔ |
pageCount | Int | Number of pages in pdf attachment. | ✔ |
ogTags | LinkOGTags | OGTags for link type attachment. | |
coverImageUrl | String | Cover image url user for cover image for article. | ✔ |
title | String | Title of the article post. | ✔ |
body | String | Body of the article post. | ✔ |
entityId | String | Entity ID for entity attachment. | ✔ |
thumbnailUrl | String | Thumbnail url for the media. | ✔ |
awsFolderPath | String | Folder path of aws where media will be uploaded. | ✔ |
localFilePath | String | Local file path of the media. | ✔ |
localUri | Uri | Local Uri of the media. | ✔ |
thumbnailAWSFolderPath | String | Folder path of aws for the thumbnail of the media. | ✔ |
thumbnailLocalFilePath | String | Local file path of the thumbnail of the media. | ✔ |
LinkOGTags
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
title | String | Link title. | ✔ |
image | String | Link image url. | ✔ |
description | String | Link description. | ✔ |
url | String | Link url. | ✔ |
MenuItem
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
id | Int | ID of the menu item. | |
title | String | Title of the menu item. |