|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
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. | |
Describes the physical address of a location. https://core.telegram.org/bots/api#locationaddress.
Definition at line 9 of file LocationAddress.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file LocationAddress.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 39 of file LocationAddress.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 29 of file LocationAddress.hpp.
| std::string tgbotxx::LocationAddress::city |
Optional. City of the location.
Definition at line 22 of file LocationAddress.hpp.
| 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.
| std::string tgbotxx::LocationAddress::state |
Optional. State of the location.
Definition at line 19 of file LocationAddress.hpp.
| std::string tgbotxx::LocationAddress::street |
Optional. Street address of the location.
Definition at line 25 of file LocationAddress.hpp.