PollOption

PollOption

Class representing a poll option

Constructor

new PollOption()

Members

(static) VoteAction

Properties:
Name Type Description
CAST string

"cast"

CANCEL string

"cancel"

String enum object for the vote action.

createdAt :number

Default Value:
  • 0
Type:
  • number

createdBy :string

Default Value:
  • ""
Type:
  • string

id :number

Default Value:
  • 0
Type:
  • number

partialVoters :Array.<module:model/user~User>

Type:
  • Array.<module:model/user~User>

pollId :number

Default Value:
  • 0
Type:
  • number

text :string

Default Value:
  • ""
Type:
  • string

updatedAt :number

Default Value:
  • 0
Type:
  • number

voteCount :number

Default Value:
  • 0
Type:
  • number

Methods

(static) get(channelUrl, pollId, optionId, callback) → {Promise.<module:model/pollOption~PollOption>|undefined}

Get the poll option.

Parameters:
Name Type Description
channelUrl string
pollId number
optionId number
callback pollOptionCallback
Returns:
Type
Promise.<module:model/pollOption~PollOption> | undefined

delete(callback)

Delete the poll option.

Parameters:
Name Type Description
callback commonCallback

update(text, callback) → {Promise.<module:model/poll~Poll>|undefined}

Update the poll option.

Parameters:
Name Type Description
text string
callback pollCallback
Returns:
Type
Promise.<module:model/poll~Poll> | undefined