TDLib
Loading...
Searching...
No Matches
userRating Class Referencefinal

Inherits Object.

Description

Contains description of user rating.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 userRating ()
 userRating (int32 level_, bool is_maximum_level_reached_, int53 rating_, int53 current_level_rating_, int53 next_level_rating_)
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int53 current_level_rating_
 The rating required for the current level.
bool is_maximum_level_reached_
 True, if the maximum level is reached.
int32 level_
 The level of the user; may be negative.
int53 next_level_rating_
 The rating required for the next level; 0 if the maximum level is reached.
int53 rating_
 Numerical value of the rating.

Static Public Attributes

static const std::int32_t ID = 532047235
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ userRating() [1/2]

userRating ( )

Contains description of user rating.

◆ userRating() [2/2]

userRating ( int32 level_,
bool is_maximum_level_reached_,
int53 rating_,
int53 current_level_rating_,
int53 next_level_rating_ )

Contains description of user rating.

Parameters
[in]level_The level of the user; may be negative.
[in]is_maximum_level_reached_True, if the maximum level is reached.
[in]rating_Numerical value of the rating.
[in]current_level_rating_The rating required for the current level.
[in]next_level_rating_The rating required for the next level; 0 if the maximum level is reached.

Member Function Documentation

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