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

Describes the opening hours of a business. https://core.telegram.org/bots/api#businessopeninghours. More...

#include <BusinessOpeningHours.hpp>

Public Member Functions

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

Public Attributes

std::string timeZoneName
 Unique name of the time zone for which the opening hours are defined.
 
std::vector< Ptr< BusinessOpeningHoursInterval > > openingHours
 List of time intervals describing business opening hours.
 

Detailed Description

Describes the opening hours of a business. https://core.telegram.org/bots/api#businessopeninghours.

Definition at line 8 of file BusinessOpeningHours.hpp.

Constructor & Destructor Documentation

◆ BusinessOpeningHours() [1/2]

tgbotxx::BusinessOpeningHours::BusinessOpeningHours ( )
default

◆ BusinessOpeningHours() [2/2]

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

Definition at line 10 of file BusinessOpeningHours.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::BusinessOpeningHours::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 31 of file BusinessOpeningHours.hpp.

◆ toJson()

nl::json tgbotxx::BusinessOpeningHours::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 23 of file BusinessOpeningHours.hpp.

Member Data Documentation

◆ openingHours

std::vector<Ptr<BusinessOpeningHoursInterval> > tgbotxx::BusinessOpeningHours::openingHours

List of time intervals describing business opening hours.

Definition at line 18 of file BusinessOpeningHours.hpp.

◆ timeZoneName

std::string tgbotxx::BusinessOpeningHours::timeZoneName

Unique name of the time zone for which the opening hours are defined.

Definition at line 15 of file BusinessOpeningHours.hpp.


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