|
TDLib
|
Inherits td::td_api::Object.
Public Member Functions | |
| pollOption () | |
| pollOption (string const &text_, int32 voter_count_, int32 vote_percentage_, bool is_chosen_, bool is_being_chosen_) | |
| std::int32_t | get_id () const final |
| 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 | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Public Attributes | |
| string | text_ |
| Option text; 1-100 characters. | |
| int32 | voter_count_ |
| Number of voters for this option, available only for closed or voted polls. | |
| int32 | vote_percentage_ |
| The percentage of votes for this option; 0-100. | |
| bool | is_chosen_ |
| True, if the option was chosen by the user. | |
| bool | is_being_chosen_ |
| True, if the option is being chosen by a pending setPollAnswer request. | |
Static Public Attributes | |
| static const std::int32_t | ID = 1473893797 |
| Identifier uniquely determining a type of the object. | |
Describes one answer option of a poll.
| td::td_api::pollOption::pollOption | ( | ) |
Describes one answer option of a poll.
| td::td_api::pollOption::pollOption | ( | string const & | text_, |
| int32 | voter_count_, | ||
| int32 | vote_percentage_, | ||
| bool | is_chosen_, | ||
| bool | is_being_chosen_ | ||
| ) |
Describes one answer option of a poll.
| [in] | text_ | Option text; 1-100 characters. |
| [in] | voter_count_ | Number of voters for this option, available only for closed or voted polls. |
| [in] | vote_percentage_ | The percentage of votes for this option; 0-100. |
| [in] | is_chosen_ | True, if the option was chosen by the user. |
| [in] | is_being_chosen_ | True, if the option is being chosen by a pending setPollAnswer request. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.