List of all members | Public Fields | Public Instance Methods | Static Public Attributes
poll Class Referencefinal

Inherits Object.

Description

Describes a poll.

Public Fields

int64 id_
 Unique poll identifier.
 
string question_
 Poll question; 1-300 characters.
 
array< object_ptr< pollOption > > options_
 List of poll answer options.
 
int32 total_voter_count_
 Total number of voters, participating in the poll.
 
array< int53recent_voter_user_ids_
 User identifiers of recent voters, if the poll is non-anonymous.
 
bool is_anonymous_
 True, if the poll is anonymous.
 
object_ptr< PollTypetype_
 Type of the poll.
 
int32 open_period_
 Amount of time the poll will be active after creation, in seconds.
 
int32 close_date_
 Point in time (Unix timestamp) when the poll will automatically be closed.
 
bool is_closed_
 True, if the poll is closed.
 

Public Instance Methods

 poll ()
 
 poll (int64 id_, string const &question_, array< object_ptr< pollOption >> &&options_, int32 total_voter_count_, array< int53 > &&recent_voter_user_ids_, bool is_anonymous_, object_ptr< PollType > &&type_, int32 open_period_, int32 close_date_, bool is_closed_)
 
std::int32_t get_id () const final
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

static const std::int32_t ID = 116940085
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ poll() [1/2]

poll ( )

Describes a poll.

◆ poll() [2/2]

poll ( int64  id_,
string const &  question_,
array< object_ptr< pollOption >> &&  options_,
int32  total_voter_count_,
array< int53 > &&  recent_voter_user_ids_,
bool  is_anonymous_,
object_ptr< PollType > &&  type_,
int32  open_period_,
int32  close_date_,
bool  is_closed_ 
)

Describes a poll.

Parameters
[in]id_Unique poll identifier.
[in]question_Poll question; 1-300 characters.
[in]options_List of poll answer options.
[in]total_voter_count_Total number of voters, participating in the poll.
[in]recent_voter_user_ids_User identifiers of recent voters, if the poll is non-anonymous.
[in]is_anonymous_True, if the poll is anonymous.
[in]type_Type of the poll.
[in]open_period_Amount of time the poll will be active after creation, in seconds.
[in]close_date_Point in time (Unix timestamp) when the poll will automatically be closed.
[in]is_closed_True, if the poll is closed.

Method Documentation

◆ get_id()

std::int32_t get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements TlObject.

◆ store()

void store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

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

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

Implements TlObject.


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