Inherits td::td_api::Object.
|
| poll () |
|
| poll (int64 id_, string const &question_, array< object_ptr< pollOption > > &&options_, int32 total_voter_count_, array< object_ptr< MessageSender > > &&recent_voter_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 |
|
virtual void | store (TlStorerUnsafe &s) const |
|
virtual void | store (TlStorerCalcLength &s) const |
|
| TlObject ()=default |
|
| TlObject (const TlObject &)=delete |
|
TlObject & | operator= (const TlObject &)=delete |
|
| TlObject (TlObject &&)=default |
|
TlObject & | operator= (TlObject &&)=default |
|
virtual | ~TlObject ()=default |
|
|
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< object_ptr< MessageSender > > | recent_voter_ids_ |
| Identifiers of recent voters, if the poll is non-anonymous.
|
|
bool | is_anonymous_ |
| True, if the poll is anonymous.
|
|
object_ptr< PollType > | type_ |
| 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.
|
|
|
static const std::int32_t | ID = -1397847072 |
| Identifier uniquely determining a type of the object.
|
|
◆ poll() [1/2]
td::td_api::poll::poll |
( |
| ) |
|
◆ poll() [2/2]
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_ids_ | 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. |
◆ get_id()
std::int32_t td::td_api::poll::get_id |
( |
| ) |
const |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
- Returns
- this->ID.
Implements td::TlObject.
◆ store()
void td::td_api::poll::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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
The documentation for this class was generated from the following file: