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

Describes an interval of time during which a business is open. https://core.telegram.org/bots/api#businessopeninghoursinterval. More...

#include <BusinessOpeningHoursInterval.hpp>

Public Member Functions

 BusinessOpeningHoursInterval ()=default
 
 BusinessOpeningHoursInterval (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::int32_t openingMinute {}
 The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60.
 
std::int32_t closingMinute {}
 The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60.
 

Detailed Description

Describes an interval of time during which a business is open. https://core.telegram.org/bots/api#businessopeninghoursinterval.

Definition at line 7 of file BusinessOpeningHoursInterval.hpp.

Constructor & Destructor Documentation

◆ BusinessOpeningHoursInterval() [1/2]

tgbotxx::BusinessOpeningHoursInterval::BusinessOpeningHoursInterval ( )
default

◆ BusinessOpeningHoursInterval() [2/2]

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

Definition at line 9 of file BusinessOpeningHoursInterval.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 29 of file BusinessOpeningHoursInterval.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 21 of file BusinessOpeningHoursInterval.hpp.

Member Data Documentation

◆ closingMinute

std::int32_t tgbotxx::BusinessOpeningHoursInterval::closingMinute {}

The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60.

Definition at line 17 of file BusinessOpeningHoursInterval.hpp.

◆ openingMinute

std::int32_t tgbotxx::BusinessOpeningHoursInterval::openingMinute {}

The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60.

Definition at line 14 of file BusinessOpeningHoursInterval.hpp.


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