tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::ChatBoostSource Struct Reference

This object describes the source of a chat boost. It can be one of: More...

#include <ChatBoostSource.hpp>

Inheritance diagram for tgbotxx::ChatBoostSource:
tgbotxx::ChatBoostSourceGiftCode tgbotxx::ChatBoostSourceGiveaway tgbotxx::ChatBoostSourcePremium

Public Member Functions

 ChatBoostSource ()=default
 
 ChatBoostSource (const nl::json &json)
 
virtual nl::json toJson () const
 Serializes this object to JSON. More...
 
virtual void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::string source
 Source of the boost. More...
 

Detailed Description

This object describes the source of a chat boost. It can be one of:

Definition at line 11 of file ChatBoostSource.hpp.

Constructor & Destructor Documentation

◆ ChatBoostSource() [1/2]

tgbotxx::ChatBoostSource::ChatBoostSource ( )
default

◆ ChatBoostSource() [2/2]

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

Definition at line 13 of file ChatBoostSource.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented in tgbotxx::ChatBoostSourceGiveaway, tgbotxx::ChatBoostSourceGiftCode, and tgbotxx::ChatBoostSourcePremium.

Definition at line 30 of file ChatBoostSource.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented in tgbotxx::ChatBoostSourceGiveaway, tgbotxx::ChatBoostSourceGiftCode, and tgbotxx::ChatBoostSourcePremium.

Definition at line 23 of file ChatBoostSource.hpp.

Member Data Documentation

◆ source

std::string tgbotxx::ChatBoostSource::source

Source of the boost.

Definition at line 18 of file ChatBoostSource.hpp.


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