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

Describes the physical address of a location. https://core.telegram.org/bots/api#locationaddress. More...

#include <LocationAddress.hpp>

Public Member Functions

 LocationAddress ()=default
 
 LocationAddress (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 countryCode
 The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.
 
std::string state
 Optional. State of the location.
 
std::string city
 Optional. City of the location.
 
std::string street
 Optional. Street address of the location.
 

Detailed Description

Describes the physical address of a location. https://core.telegram.org/bots/api#locationaddress.

Definition at line 9 of file LocationAddress.hpp.

Constructor & Destructor Documentation

◆ LocationAddress() [1/2]

tgbotxx::LocationAddress::LocationAddress ( )
default

◆ LocationAddress() [2/2]

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

Definition at line 11 of file LocationAddress.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 39 of file LocationAddress.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 29 of file LocationAddress.hpp.

Member Data Documentation

◆ city

std::string tgbotxx::LocationAddress::city

Optional. City of the location.

Definition at line 22 of file LocationAddress.hpp.

◆ countryCode

std::string tgbotxx::LocationAddress::countryCode

The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located.

Definition at line 16 of file LocationAddress.hpp.

◆ state

std::string tgbotxx::LocationAddress::state

Optional. State of the location.

Definition at line 19 of file LocationAddress.hpp.

◆ street

std::string tgbotxx::LocationAddress::street

Optional. Street address of the location.

Definition at line 25 of file LocationAddress.hpp.


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