PollVoteEvent class

Class representing an event that one or more vote has been casted on a poll option. The affected poll may be in multiple channels. This event will be passed to GroupChannelHandler.onPollVoted. Once this event is received, the user must find cached messages that contain this poll and apply changes using Poll.applyPollVoteEvent.

Constructors

PollVoteEvent({required int pollId, required int messageId, required Map<String, dynamic> json})
PollVoteEvent.fromJson(Map<String, dynamic> res)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>
getter/setter pair
messageId int
Id of the message that contains the Poll.
getter/setter pair
pollId int
Id of the voted Poll.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited