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

Base class representing the state of a revenue withdrawal operation https://core.telegram.org/bots/api#revenuewithdrawalstate. More...

#include <RevenueWithdrawalState.hpp>

Inheritance diagram for tgbotxx::RevenueWithdrawalState:
tgbotxx::RevenueWithdrawalStateFailed tgbotxx::RevenueWithdrawalStatePending tgbotxx::RevenueWithdrawalStateSucceeded

Public Member Functions

 RevenueWithdrawalState ()=default
 
 RevenueWithdrawalState (const nl::json &json)
 
virtual ~RevenueWithdrawalState ()=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 state.
 

Detailed Description

Base class representing the state of a revenue withdrawal operation https://core.telegram.org/bots/api#revenuewithdrawalstate.

Definition at line 8 of file RevenueWithdrawalState.hpp.

Constructor & Destructor Documentation

◆ RevenueWithdrawalState() [1/2]

tgbotxx::RevenueWithdrawalState::RevenueWithdrawalState ( )
default

◆ RevenueWithdrawalState() [2/2]

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

Definition at line 10 of file RevenueWithdrawalState.hpp.

◆ ~RevenueWithdrawalState()

virtual tgbotxx::RevenueWithdrawalState::~RevenueWithdrawalState ( )
virtualdefault

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented in tgbotxx::RevenueWithdrawalStateSucceeded.

Definition at line 26 of file RevenueWithdrawalState.hpp.

◆ toJson()

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

Serializes this object to JSON.

Reimplemented in tgbotxx::RevenueWithdrawalStateSucceeded.

Definition at line 19 of file RevenueWithdrawalState.hpp.

Member Data Documentation

◆ type

std::string tgbotxx::RevenueWithdrawalState::type

Type of the state.

Definition at line 16 of file RevenueWithdrawalState.hpp.


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