ConnectApi.FeedPoll Class

Important

Important

This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.​PollCapability Class is used.

Subclass of ConnectApi.​FeedItem​Attachment Class

This object is returned as the attachment of ConnectApi.FeedItem objects where the type property is PollPost.

Name Type Description Available Version
choices List<ConnectApi.​Feed​Poll​Choice> List of choices for poll. 28.0–31.0
myChoiceId String ID of the poll choice that the current user has voted for in this poll. Returns null if the current user hasn’t voted. 28.0–31.0
totalVoteCount Integer Total number of votes cast on the feed poll item. 28.0–31.0
Previous
Next