A class representing query to retrieve the list of polls.

Hierarchy

  • default
    • PollListQuery

Properties

Accessors

Methods

Properties

channelType: ChannelType

A channel type.

channelUrl: string

A channel URL.

limit: number = DEFAULT_LIST_QUERY_LIMIT

The maximum number of data per queried page.

Accessors

  • get hasNext(): boolean
  • Returns boolean

    Whether there is a next page.

  • get isLoading(): boolean
  • Returns boolean

    Whether the current query is in communication progress with server.

Methods

  • Returns Promise<Poll[]>

    List all polls that belong to a channel specified by channelUrl. The response will be paginated and if there are more values available, hasNext will be true.