qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
|
The TelegramLocation class just simple struct with latitude and longitude. More...
#include <telegramlocation.h>
Public Member Functions | |
TelegramLocation () | |
TelegramLocation (const QJsonObject &jsonObject) | |
Constructs a location object from a JSON object. | |
double | latitude () const |
latitude is float value of latitude | |
double | longitude () const |
longitude is float value of longitude | |
QPointF | toQPoint () const |
toQPoint This method convert location data to general qt class. | |
Public Member Functions inherited from qTbot::IJsonBasedObject | |
IJsonBasedObject () | |
IJsonBasedObject (const QJsonObject &newRawJson) | |
const QJsonObject & | rawJson () const |
rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobject. | |
virtual void | setRawJson (const QJsonObject &newRawJson) |
setRawJson this method convert jsobject into telegram message. | |
The TelegramLocation class just simple struct with latitude and longitude.
Definition at line 19 of file telegramlocation.h.
qTbot::TelegramLocation::TelegramLocation | ( | ) |
Definition at line 13 of file telegramlocation.cpp.
qTbot::TelegramLocation::TelegramLocation | ( | const QJsonObject & | jsonObject | ) |
Constructs a location object from a JSON object.
jsonObject | The JSON object containing photo data. |
Definition at line 18 of file telegramlocation.cpp.
double qTbot::TelegramLocation::latitude | ( | ) | const |
latitude is float value of latitude
Definition at line 23 of file telegramlocation.cpp.
double qTbot::TelegramLocation::longitude | ( | ) | const |
longitude is float value of longitude
Definition at line 28 of file telegramlocation.cpp.
QPointF qTbot::TelegramLocation::toQPoint | ( | ) | const |
toQPoint This method convert location data to general qt class.
Definition at line 33 of file telegramlocation.cpp.