TDLib
Loading...
Searching...
No Matches
td::td_api::pollTypeQuiz Class Referencefinal

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
 
- 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

int32 correct_option_id_
 0-based identifier of the correct answer option; -1 for a yet unanswered poll.
 
object_ptr< formattedTextexplanation_
 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.
 

Detailed Description

A poll in quiz mode, which has exactly one correct answer option and can be answered only once.

Constructor & Destructor Documentation

◆ pollTypeQuiz() [1/2]

td::td_api::pollTypeQuiz::pollTypeQuiz ( )

A poll in quiz mode, which has exactly one correct answer option and can be answered only once.

◆ pollTypeQuiz() [2/2]

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.

Parameters
[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.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::pollTypeQuiz::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::pollTypeQuiz::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 td::TlObject.


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