GroupChannelPoll extension
GroupChannelPoll
- on
Methods
-
addPollOption(
{required int pollId, required String optionText}) → Future< Poll> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Adds an option withoptionText
to this poll. -
closePoll(
{required int pollId}) → Future< Poll> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Closes this poll. -
deletePoll(
{required int pollId}) → Future< void> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Deletes this poll. -
deletePollOption(
{required int pollId, required int pollOptionId}) → Future< void> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Deletes this poll option. -
getPollChangeLogsSinceTimestamp(
int timestamp) → Future< PollChangeLogs> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Requests poll change logs after given timestamp. -
getPollChangeLogsSinceToken(
String? token) → Future< PollChangeLogs> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Requests poll change logs after given token. -
updatePoll(
{required int pollId, required PollUpdateParams params}) → Future< Poll> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Updates fields of this poll with givenparams
. -
updatePollOption(
{required int pollId, required int pollOptionId, required String optionText}) → Future< Poll> -
Available on GroupChannel, provided by the GroupChannelPoll extension
UpdatesoptionText
fields of this poll option. -
votePoll(
{required int pollId, required List< int> pollOptionIds}) → Future<PollVoteEvent> -
Available on GroupChannel, provided by the GroupChannelPoll extension
Vote onpollOptionIds
. This operation overrides previous vote actions, so to update previous vote, pass newpollOptionIds
as parameter. To cancel votes, pass an empty list aspollOptionIds
.