tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::TransactionPartner Struct Reference

Base class for all transaction partners https://core.telegram.org/bots/api#transactionpartner. More...

#include <TransactionPartner.hpp>

Inheritance diagram for tgbotxx::TransactionPartner:
tgbotxx::TransactionPartnerAffiliateProgram tgbotxx::TransactionPartnerChat tgbotxx::TransactionPartnerFragment tgbotxx::TransactionPartnerOther tgbotxx::TransactionPartnerTelegramAds tgbotxx::TransactionPartnerTelegramApi tgbotxx::TransactionPartnerUser

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.
 

Detailed Description

Base class for all transaction partners https://core.telegram.org/bots/api#transactionpartner.

Definition at line 15 of file TransactionPartner.hpp.

Constructor & Destructor Documentation

◆ TransactionPartner() [1/2]

tgbotxx::TransactionPartner::TransactionPartner ( )
default

◆ TransactionPartner() [2/2]

tgbotxx::TransactionPartner::TransactionPartner ( const nl::json &  json)
inlineexplicit

Definition at line 17 of file TransactionPartner.hpp.

◆ ~TransactionPartner()

virtual tgbotxx::TransactionPartner::~TransactionPartner ( )
virtualdefault

Member Function Documentation

◆ fromJson()

virtual void tgbotxx::TransactionPartner::fromJson ( const nl::json &  json)
inlinevirtual

◆ toJson()

virtual nl::json tgbotxx::TransactionPartner::toJson ( ) const
inlinevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented in tgbotxx::TransactionPartnerUser, tgbotxx::TransactionPartnerChat, tgbotxx::TransactionPartnerAffiliateProgram, tgbotxx::TransactionPartnerFragment, and tgbotxx::TransactionPartnerTelegramApi.

Definition at line 27 of file TransactionPartner.hpp.

Member Data Documentation

◆ type

std::string tgbotxx::TransactionPartner::type

Type of the transaction partner.

Definition at line 23 of file TransactionPartner.hpp.


The documentation for this struct was generated from the following file: