Cppgram  1.0.0
Easy and modern C++14 Telegram Bot API wrapper
location.hpp
1 #ifndef CPPGRAM_LOCATION_HPP
2 #define CPPGRAM_LOCATION_HPP
3 
4 #include <string>
5 
6 #include <json/json.h>
7 
8 namespace cppgram
9 {
10 namespace types
11 {
19 class Location
20 {
23  public:
25  float longitude,
26 
28  latidute;
29 
30  Location( Json::Value &json_location )
31  : longitude( json_location["longitude"].asFloat() )
32  , latidute( json_location["latidute"].asFloat() )
33  {
34  }
35 };
36 }
37 }
38 
39 #endif
float longitude
Longitude as defined by sender.
Definition: location.hpp:25
A location send by a user.
Definition: location.hpp:19
main namespace for Cppgram
float latidute
Latitude as defined by sender.
Definition: location.hpp:25