|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Base class for a gift owned by a user or a chat Can be either OwnedGiftRegular or OwnedGiftUnique. More...
#include <OwnedGift.hpp>
Public Member Functions | |
| OwnedGift ()=default | |
| OwnedGift (const nl::json &json) | |
| virtual | ~OwnedGift ()=default |
| virtual nl::json | toJson () const |
| Serializes this object to JSON. | |
| virtual void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | type |
| Type of the gift: "regular" or "unique". | |
Base class for a gift owned by a user or a chat Can be either OwnedGiftRegular or OwnedGiftUnique.
Definition at line 12 of file OwnedGift.hpp.
|
default |
|
inlineexplicit |
Definition at line 14 of file OwnedGift.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::OwnedGiftRegular, and tgbotxx::OwnedGiftUnique.
Definition at line 31 of file OwnedGift.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::OwnedGiftRegular, and tgbotxx::OwnedGiftUnique.
Definition at line 24 of file OwnedGift.hpp.
| std::string tgbotxx::OwnedGift::type |
Type of the gift: "regular" or "unique".
Definition at line 20 of file OwnedGift.hpp.