TDLib
|
Inherits td::td_api::PollType.
Public Member Functions | |
pollTypeQuiz () | |
pollTypeQuiz (int32 correct_option_id_, object_ptr< formattedText > &&explanation_) | |
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 |
Public Attributes | |
int32 | correct_option_id_ |
0-based identifier of the correct answer option; -1 for a yet unanswered poll. | |
object_ptr< formattedText > | explanation_ |
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll. | |
Static Public Attributes | |
static const std::int32_t | ID = 657013913 |
Identifier uniquely determining a type of the object. | |
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
td::td_api::pollTypeQuiz::pollTypeQuiz | ( | ) |
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
td::td_api::pollTypeQuiz::pollTypeQuiz | ( | int32 | correct_option_id_, |
object_ptr< formattedText > && | explanation_ | ||
) |
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
[in] | correct_option_id_ | 0-based identifier of the correct answer option; -1 for a yet unanswered poll. |
[in] | explanation_ | Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll. |
|
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.