Poll class

Describes a poll.

Inheritance
Available Extensions

Constructors

Poll({required int64 id, required String question, required List<PollOption> options, required int total_voter_count, required List<MessageSender> recent_voter_ids, required bool is_anonymous, required PollType type, required int open_period, required int close_date, required bool is_closed, int? extra, int? clientId})
Describes a poll

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
close_date int
Point in time (Unix timestamp) when the poll will automatically be closed.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
id int64
Unique poll identifier. ; string representation of int, use int.parse
read / write
is_anonymous bool
True, if the poll is anonymous.
read / write
is_closed bool
True, if the poll is closed.
read / write
open_period int
Amount of time the poll will be active after creation, in seconds.
read / write
options List<PollOption>
List of poll answer options.
read / write
question String
Poll question; 1-300 characters.
read / write
recent_voter_ids List<MessageSender>
Identifiers of recent voters, if the poll is non-anonymous.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
total_voter_count int
Total number of voters, participating in the poll.
read / write
type PollType
Type of the poll.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) Poll?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"poll"