1 #ifndef CPPGRAM_VENUE_HPP 2 #define CPPGRAM_VENUE_HPP 4 #include <experimental/optional> 9 #include "location.hpp" 38 Venue( Json::Value &json_venue )
39 : location(
Location( json_venue[
"location"] ) )
40 , title( json_venue[
"title"].asString() )
41 , address( json_venue[
"address"].asString() )
43 if ( !json_venue[
"foursquare_id"].isNull() )
45 foursquare_id.emplace( json_venue[
"foursquare_id"].asString() );
std::string title
Name of the venue.
Definition: venue.hpp:30
This object represents a venue.
Definition: venue.hpp:21
std::experimental::optional< std::string > foursquare_id
Optional. Foursquare identifier of the venue
Definition: venue.hpp:36
Location location
Venue location.
Definition: venue.hpp:27
A location send by a user.
Definition: location.hpp:19
main namespace for Cppgram
std::string address
Address of the venue.
Definition: venue.hpp:30