diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-09-16 15:41:39 +0300 |
---|---|---|
committer | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-09-16 15:47:16 +0300 |
commit | b0e6170667661162bd2615ac2133709d6bdaf030 (patch) | |
tree | d9ff2b7fb97d8125c2a085ee26e6fc4f56344eab /map | |
parent | ac4dd584be1bbeb5cb9119684b51d55110ec0b3c (diff) |
Fix facility datatype.
Diffstat (limited to 'map')
-rw-r--r-- | map/booking_api.cpp | 6 | ||||
-rw-r--r-- | map/booking_api.hpp | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/map/booking_api.cpp b/map/booking_api.cpp index 78fe0c0152..4985f7ab8d 100644 --- a/map/booking_api.cpp +++ b/map/booking_api.cpp @@ -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 = { { diff --git a/map/booking_api.hpp b/map/booking_api.hpp index 2c41789c1d..bec7c4f1ba 100644 --- a/map/booking_api.hpp +++ b/map/booking_api.hpp @@ -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; }; |