Chat / iOS
Chat iOS v4
Chat iOS
Chat
iOS
Version 4
Home
/
Chat
/
iOS
/
Message

Retrieve a list of voters

Create a PollVoterListQuery instance to retrieve a list of voters matching the specifications set by PollVoterListQueryParams.

let query1 = channel.createPollVoterListQuery(pollId: poll.pollId, pollOptionId: poll.firstOptionId)

let params = PollVoterListQueryParams()
params.channelType = channel.channelType
params.channelURL = channel.channelURL
params.pollId = poll.pollId
params.pollOptionId = poll.firstOptionId
let query2 = main.createPollVoterListQuery(params: params)

PollVoterListQueryParams

Parameter nameTypeDescription

pollId

Int64

Specifies the unique ID of a poll.

pollOptionId

Int64

Specifies the unique ID of a poll option.

channelType

channelType

Specifies the type of the channel.

channelUrl

string

Specifies the URL of the channel.

limit

UInt

Specifies the number of results to retrieve per page. Acceptable values are 1 to 100, inclusive. (Default: 20)