SBDPollOption Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying SBDMappable |
| Declared in | SBDPollOption.h |
optionId
Option id
@property (atomic, assign, readonly) long long optionIdDeclared In
SBDPollOption.h
text
The text to represent the option
@property (nonatomic, strong, readonly) NSString *textDeclared In
SBDPollOption.h
voteCount
Number of votes casted on the option
@property (atomic, assign, readonly) NSInteger voteCountDeclared In
SBDPollOption.h
createdBy
ID of the user who has created the option
@property (nonatomic, strong, readonly) NSString *createdByDeclared In
SBDPollOption.h
createdAt
Unix timestamp at which the option is created (millisecond)
@property (atomic, assign, readonly) long long createdAtDeclared In
SBDPollOption.h
updatedAt
Unix timestamp at which the option is updated (millisecond)
@property (atomic, assign, readonly) long long updatedAtDeclared In
SBDPollOption.h
lastVotedAt
Unix timestamp at which last vote occurs either cast or cancel (millisecond)
@property (atomic, assign, readonly) long long lastVotedAtDeclared In
SBDPollOption.h
partialVoters
Users who casted the vote on this option, this field is only available when you fetch poll with showPartialVoters option
@property (nonatomic, strong, nullable, readonly) NSArray<SBDUser*> *partialVotersDeclared In
SBDPollOption.h
+ getWithPollId:optionId:channelUrl:completionHandler:
Gets an option with id
+ (void)getWithPollId:(long long)pollId optionId:(long long)optionId channelUrl:(NSString *)channelUrl completionHandler:(SBDPollOptionHandler)completionHandlerParameters
pollId |
poll id |
|---|---|
optionId |
option id |
channelUrl |
channelUrl that poll is belonged to |
completionHandler |
completion block |
Declared In
SBDPollOption.h
– deleteWithCompletionHandler:
Deletes this option
- (void)deleteWithCompletionHandler:(nullable SBDErrorHandler)completionHandlerParameters
completionHandler |
completion block |
|---|
Declared In
SBDPollOption.h