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

Retrieve a list of polls

Copy link

Create a PollListQuery instance to retrieve a list of polls matching the specifications set by PollListQueryParams.

let query = channel.createPollListQuery()

let param = PollListQueryParams()
param.channelURL = channel.channelURL
param.channelType = channel.channelType
param.limit = 10
let query = main.createPollListQuery(params: param)

PollListQueryParams

Copy link
Parameter nameTypeDescription

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 20, inclusive. (Default: 10)