Skip to main content

Attachment View Data Model

LMAttachmentViewData

VARIABLETYPEDESCRIPTIONOPTIONAL
attachmentMetaLMAttachmentMetaViewDataMetadata for the attachment
attachmentTypenumberType of the attachment

LMAttachmentMetaViewData

VARIABLETYPEDESCRIPTIONOPTIONAL
entityIdstringID of the associated entity✔️
namestringName of the attachment✔️
formatstringFormat of the attachment✔️
sizenumberSize of the attachment✔️
durationnumberDuration of the attachment (for video/audio files)✔️
pageCountnumberPage count for documents✔️
urlstringURL of the attachment
thumbnailUrlstringURL for the thumbnail image✔️
ogTagsLMOGTagsViewDataOpen Graph tags associated with the attachment
coverImageUrlstringURL for the cover image✔️
titlestringTitle of the attachment✔️
bodystringBody content of the attachment✔️
pollQuestionstringQuestion for a poll attachment✔️
expiryTimenumberExpiry time for the poll attachment✔️
optionsstring[]Options for the poll✔️
multipleSelectStatePollMultiSelectStateState for multiple selection in polls✔️
pollTypePollTypeType of poll (single/multiple choice)✔️
multipleSelectNumbernumberNumber of selections allowed in multiple select polls✔️
isAnonymousbooleanIndicates if the poll is anonymous✔️
allowAddOptionbooleanIndicates if adding options is allowed✔️

PollMultiSelectState

VARIABLETYPEDESCRIPTION
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

VARIABLETYPEDESCRIPTION
INSTANT"instant"Indicates that the selection is immediate.
DEFERRED"deferred"Indicates that the selection is delayed.

LMOGTagsViewData

VARIABLETYPEDESCRIPTIONOPTIONAL
descriptionstringA brief description of the content✔️
titlestringThe title of the content✔️
urlstringThe URL associated with the content✔️
imagestringThe image URL associated with the content✔️