SBDPollVoterListQuery Class Reference

Inherits from NSObject
Declared in SBDPollVoterListQuery.h

Overview

A class representing query to retrieve list of SBDUsers who vote on given parameters

Other Methods

  pollId

Poll id

@property (atomic, readonly) long long pollId

Declared In

SBDPollVoterListQuery.h

  optionId

Option id

@property (atomic, readonly) long long optionId

Declared In

SBDPollVoterListQuery.h

  channelURL

The channel url related to the poll.

@property (strong, readonly) NSString *channelURL

Declared In

SBDPollVoterListQuery.h

  limit

Sets the number of users per page.

@property (atomic) NSUInteger limit

Declared In

SBDPollVoterListQuery.h

  hasNext

Shows if there is a next page

@property (atomic, readonly) BOOL hasNext

Declared In

SBDPollVoterListQuery.h

– init

- (instancetype)init

– isLoading

Returns YES if the query is loading, otherwise returns NO.

- (BOOL)isLoading

Return Value

Returns YES if the query is loading, otherwise returns NO.

Declared In

SBDPollVoterListQuery.h

– loadNextPageWithCompletionHandler:

If this method is repeatedly called, it will retrieve the following pages of the voters

- (void)loadNextPageWithCompletionHandler:(void ( ^ ) ( NSArray<SBDUser*> *_Nullable , int voteCount , SBDError *_Nullable ))completionHandler

Parameters

completionHandler

The handler block to execute. The messages is the array of SBDUser and total vote count.

Declared In

SBDPollVoterListQuery.h

Internal Methods

– initWithChannelUrl:pollId:optionId:

- (nullable instancetype)initWithChannelUrl:(nonnull NSString *)channelURL pollId:(long long)pollId optionId:(long long)optionId