forked from organicmaps/organicmaps
Merge pull request #4296 from mgsergio/booking-api
Fix facility datatype.
This commit is contained in:
commit
65bd49e1c6
2 changed files with 12 additions and 2 deletions
|
@ -150,7 +150,11 @@ void BookingApi::GetHotelInfo(string const & hotelId, string const & /* lang */,
|
|||
"http://storage8.static.itmages.ru/i/16/0915/h_1473944905_4312757_433c687f4d.jpg",
|
||||
"http://storage6.static.itmages.ru/i/16/0915/h_1473945191_1817571_b945aa1f3e.jpg"});
|
||||
|
||||
info.m_facilities = {"Non smoking rooms", "Gym", "Pets are allowed"};
|
||||
info.m_facilities = {
|
||||
{"non_smoking_rooms", "Non smoking rooms"},
|
||||
{"gym", "Training gym"},
|
||||
{"pets_are_allowed", "Pets are allowed"}
|
||||
};
|
||||
|
||||
info.m_reviews = {
|
||||
{
|
||||
|
|
|
@ -57,13 +57,19 @@ public:
|
|||
time_point<system_clock> m_date;
|
||||
};
|
||||
|
||||
struct Facility
|
||||
{
|
||||
string m_id;
|
||||
string m_localizedName;
|
||||
};
|
||||
|
||||
struct HotelInfo
|
||||
{
|
||||
string m_hotelId;
|
||||
|
||||
string m_description;
|
||||
vector<HotelPhotoUrls> m_photos;
|
||||
vector<string> m_facilities;
|
||||
vector<Facility> m_facilities;
|
||||
vector<HotelReview> m_reviews;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue