Attachment View Data Model
LMAttachmentViewData
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
attachmentMeta | LMAttachmentMetaViewData | Metadata for the attachment | |
attachmentType | number | Type of the attachment |
LMAttachmentMetaViewData
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
entityId | string | ID of the associated entity | ✔️ |
name | string | Name of the attachment | ✔️ |
format | string | Format of the attachment | ✔️ |
size | number | Size of the attachment | ✔️ |
duration | number | Duration of the attachment (for video/audio files) | ✔️ |
pageCount | number | Page count for documents | ✔️ |
url | string | URL of the attachment | |
thumbnailUrl | string | URL for the thumbnail image | ✔️ |
ogTags | LMOGTagsViewData | Open Graph tags associated with the attachment | |
coverImageUrl | string | URL for the cover image | ✔️ |
title | string | Title of the attachment | ✔️ |
body | string | Body content of the attachment | ✔️ |
pollQuestion | string | Question for a poll attachment | ✔️ |
expiryTime | number | Expiry time for the poll attachment | ✔️ |
options | string[] | Options for the poll | ✔️ |
multipleSelectState | PollMultiSelectState | State for multiple selection in polls | ✔️ |
pollType | PollType | Type of poll (single/multiple choice) | ✔️ |
multipleSelectNumber | number | Number of selections allowed in multiple select polls | ✔️ |
isAnonymous | boolean | Indicates if the poll is anonymous | ✔️ |
allowAddOption | boolean | Indicates if adding options is allowed | ✔️ |
PollMultiSelectState
VARIABLE | TYPE | DESCRIPTION |
---|---|---|
EXACTLY | "exactly" | Indicates the exact selection required. |
AT_MAX | "at_max" | Indicates the maximum number of selections allowed. |
AT_LEAST | "at_least" | Indicates the minimum number of selections required. |
PollType
VARIABLE | TYPE | DESCRIPTION |
---|---|---|
INSTANT | "instant" | Indicates that the selection is immediate. |
DEFERRED | "deferred" | Indicates that the selection is delayed. |
LMOGTagsViewData
VARIABLE | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
description | string | A brief description of the content | ✔️ |
title | string | The title of the content | ✔️ |
url | string | The URL associated with the content | ✔️ |
image | string | The image URL associated with the content | ✔️ |