|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object represents one row of the high scores table for a game. https://core.telegram.org/bots/api#gamehighscore. More...
#include <GameHighScore.hpp>
Public Member Functions | |
| GameHighScore ()=default | |
| GameHighScore (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::int32_t | position {} |
| Position in high score table for the game. | |
| Ptr< User > | user |
| User. | |
| std::int32_t | score {} |
| Score. | |
This object represents one row of the high scores table for a game. https://core.telegram.org/bots/api#gamehighscore.
Definition at line 8 of file GameHighScore.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file GameHighScore.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 35 of file GameHighScore.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 26 of file GameHighScore.hpp.
| std::int32_t tgbotxx::GameHighScore::position {} |
Position in high score table for the game.
Definition at line 15 of file GameHighScore.hpp.
| std::int32_t tgbotxx::GameHighScore::score {} |
Score.
Definition at line 21 of file GameHighScore.hpp.
User.
Definition at line 18 of file GameHighScore.hpp.