diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-04-19 16:43:05 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-04-19 16:52:10 +0300 |
commit | 6a1b2622bda31c9eadf91d3c136207528cdd4635 (patch) | |
tree | 958635a666b700f077b066e8c718f35a030958c9 /map | |
parent | 01ed2046098a9c608e2949c9246204990226a5c6 (diff) |
[booking] additional url params + ios statistics fix
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 3 | ||||
-rw-r--r-- | map/place_page_info.hpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 56a7f97bfd..2664e48280 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -885,6 +885,7 @@ void Framework::FillInfoFromFeatureType(FeatureType & ft, place_page::Info & inf info.SetSponsoredUrl(m_bookingApi->GetBookHotelUrl(baseUrl)); info.SetSponsoredDeepLink(m_bookingApi->GetDeepLink(hotelId)); info.SetSponsoredDescriptionUrl(m_bookingApi->GetDescriptionUrl(baseUrl)); + info.SetSponsoredMoreUrl(m_bookingApi->GetMoreUrl(baseUrl)); info.SetSponsoredReviewUrl(m_bookingApi->GetHotelReviewsUrl(hotelId, baseUrl)); if (!m_bookingAvailabilityParams.IsEmpty()) { @@ -900,6 +901,8 @@ void Framework::FillInfoFromFeatureType(FeatureType & ft, place_page::Info & inf bind(&Info::SetSponsoredUrl, &info, _1)); urlSetter(bind(&Info::GetSponsoredDescriptionUrl, &info), bind(&Info::SetSponsoredDescriptionUrl, &info, _1)); + urlSetter(bind(&Info::GetSponsoredMoreUrl, &info), + bind(&Info::SetSponsoredMoreUrl, &info, _1)); urlSetter(bind(&Info::GetSponsoredReviewUrl, &info), bind(&Info::SetSponsoredReviewUrl, &info, _1)); urlSetter(bind(&Info::GetSponsoredDeepLink, &info), diff --git a/map/place_page_info.hpp b/map/place_page_info.hpp index 2893bcf856..04268f9763 100644 --- a/map/place_page_info.hpp +++ b/map/place_page_info.hpp @@ -156,6 +156,8 @@ public: std::string const & GetSponsoredDeepLink() const { return m_sponsoredDeepLink; } void SetSponsoredDescriptionUrl(std::string const & url) { m_sponsoredDescriptionUrl = url; } std::string const & GetSponsoredDescriptionUrl() const { return m_sponsoredDescriptionUrl; } + void SetSponsoredMoreUrl(std::string const & url) { m_sponsoredMoreUrl = url; } + std::string const & GetSponsoredMoreUrl() const { return m_sponsoredMoreUrl; } void SetSponsoredReviewUrl(std::string const & url) { m_sponsoredReviewUrl = url; } std::string const & GetSponsoredReviewUrl() const { return m_sponsoredReviewUrl; } void SetSponsoredType(SponsoredType type) { m_sponsoredType = type; } @@ -314,6 +316,7 @@ private: std::string m_sponsoredUrl; std::string m_sponsoredDeepLink; std::string m_sponsoredDescriptionUrl; + std::string m_sponsoredMoreUrl; std::string m_sponsoredReviewUrl; /// Booking |