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

Inherits PollType.

Description

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

Public Fields

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.
 

Public Instance Methods

 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 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 = 657013913
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ pollTypeQuiz() [1/2]

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

◆ pollTypeQuiz() [2/2]

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.

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: