Poll class

Describes a poll

Inheritance

Constructors

Poll({String? extra, int? client_id, int64? id, string? question, vector<PollOption>? options, int32? total_voter_count, vector<int53>? recent_voter_user_ids, Bool? is_anonymous, PollType? type, int32? open_period, int32? close_date, Bool? is_closed})
Poll.fromMap(Map<String, dynamic> map)

Properties

client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
close_date int32?
Point in time (Unix timestamp) when the poll will automatically be closed
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int64?
Unique poll identifier
getter/setter pair
is_anonymous Bool?
True, if the poll is anonymous
getter/setter pair
is_closed Bool?
True, if the poll is closed
getter/setter pair
open_period int32?
Amount of time the poll will be active after creation, in seconds
getter/setter pair
options vector<PollOption>?
List of poll answer options
getter/setter pair
question string?
Poll question; 1-300 characters
getter/setter pair
recent_voter_user_ids vector<int53>?
User identifiers of recent voters, if the poll is non-anonymous
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tdType String
JSON object type; maps to the field @type.
no setteroverride
total_voter_count int32?
Total number of voters, participating in the poll
getter/setter pair
type PollType?
Type of the poll
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

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