TDLib
Loading...
Searching...
No Matches
td::td_api::poll Class Referencefinal
Inheritance diagram for td::td_api::poll:
td::td_api::Object td::TlObject

Public Member Functions

 poll (int64 id_, object_ptr< formattedText > &&question_, array< object_ptr< pollOption > > &&options_, int32 total_voter_count_, array< object_ptr< MessageSender > > &&recent_voter_ids_, bool can_get_voters_, bool can_see_results_, bool is_anonymous_, bool allows_multiple_answers_, bool allows_revoting_, bool members_only_, array< string > &&country_codes_, array< int32 > &&option_order_, object_ptr< PollType > &&type_, int32 open_period_, int32 close_date_, bool is_closed_, object_ptr< PollVoteRestrictionReason > &&vote_restriction_reason_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
virtual void store (TlStorerCalcLength &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
TlObjectoperator= (const TlObject &)=delete
 TlObject (TlObject &&)=default
TlObjectoperator= (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int64 id_
object_ptr< formattedTextquestion_
array< object_ptr< pollOption > > options_
int32 total_voter_count_
array< object_ptr< MessageSender > > recent_voter_ids_
bool can_get_voters_
bool can_see_results_
bool is_anonymous_
bool allows_multiple_answers_
bool allows_revoting_
bool members_only_
array< string > country_codes_
array< int32 > option_order_
object_ptr< PollTypetype_
int32 open_period_
int32 close_date_
bool is_closed_
object_ptr< PollVoteRestrictionReasonvote_restriction_reason_

Static Public Attributes

static const std::int32_t ID = -1926406506

Member Function Documentation

◆ store()

void td::td_api::poll::store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for the to_string method. Appends a string representation of the object to the storer.

Parameters
[in]sStorer to which the object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.


The documentation for this class was generated from the following file: