|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Base class for all transaction partners https://core.telegram.org/bots/api#transactionpartner. More...
#include <TransactionPartner.hpp>
Public Member Functions | |
| TransactionPartner ()=default | |
| TransactionPartner (const nl::json &json) | |
| virtual | ~TransactionPartner ()=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 transaction partner. | |
Base class for all transaction partners https://core.telegram.org/bots/api#transactionpartner.
Definition at line 15 of file TransactionPartner.hpp.
|
default |
|
inlineexplicit |
Definition at line 17 of file TransactionPartner.hpp.
|
virtualdefault |
|
inlinevirtual |
Deserializes this object from JSON.
Reimplemented in tgbotxx::TransactionPartnerUser, tgbotxx::TransactionPartnerChat, tgbotxx::TransactionPartnerAffiliateProgram, tgbotxx::TransactionPartnerFragment, and tgbotxx::TransactionPartnerTelegramApi.
Definition at line 34 of file TransactionPartner.hpp.
|
inlinevirtual |
Serializes this object to JSON.
Reimplemented in tgbotxx::TransactionPartnerUser, tgbotxx::TransactionPartnerChat, tgbotxx::TransactionPartnerAffiliateProgram, tgbotxx::TransactionPartnerFragment, and tgbotxx::TransactionPartnerTelegramApi.
Definition at line 27 of file TransactionPartner.hpp.
| std::string tgbotxx::TransactionPartner::type |
Type of the transaction partner.
Definition at line 23 of file TransactionPartner.hpp.