diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2018-08-02 14:48:37 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2018-08-07 17:29:07 +0300 |
commit | 6822451147976a7f5f70cf1635e4300ac74c802f (patch) | |
tree | 13c884cb97f177d976abf4a266a61a60afdeb346 /partners_api | |
parent | e3e14aaf646bb923bd17737bca78cb7054e06909 (diff) |
Added new partner McAurthurGlen Outlets
Diffstat (limited to 'partners_api')
-rw-r--r-- | partners_api/partners.cpp | 18 | ||||
-rw-r--r-- | partners_api/partners.hpp | 7 | ||||
-rw-r--r-- | partners_api/partners_list.hpp | 2 |
3 files changed, 22 insertions, 5 deletions
diff --git a/partners_api/partners.cpp b/partners_api/partners.cpp index ac4cfa925a..b70ce77495 100644 --- a/partners_api/partners.cpp +++ b/partners_api/partners.cpp @@ -20,7 +20,7 @@ PartnerInfo const kFakePartner(kFakePartnerIndex, {}); } // namespace PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton, - std::string && defaultBannerUrl, + std::string && defaultBannerUrl, uint64_t minMapVersion, std::string && iosBannerPlacementId, std::string && androidBannerPlacementId) : m_partnerIndex(partnerIndex) @@ -28,21 +28,31 @@ PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton, , m_name(std::move(name)) , m_hasButton(hasButton) , m_defaultBannerUrl(std::move(defaultBannerUrl)) + , m_minMapVersion(minMapVersion) , m_iosBannerPlacementId(std::move(iosBannerPlacementId)) , m_androidBannerPlacementId(std::move(androidBannerPlacementId)) {} PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton, + std::string && defaultBannerUrl, uint64_t minMapVersion) + : PartnerInfo(partnerIndex, std::move(name), hasButton, + std::move(defaultBannerUrl), minMapVersion, + {} /* m_iosBannerPlacementId */, + {} /* m_androidBannerPlacementId */) +{} + +PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton, std::string && defaultBannerUrl) - : PartnerInfo(partnerIndex, std::move(name), hasButton, std::move(defaultBannerUrl), {}, {}) + : PartnerInfo(partnerIndex, std::move(name), hasButton, std::move(defaultBannerUrl), + 0 /* m_minMapVersion */) {} PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton) - : PartnerInfo(partnerIndex, std::move(name), hasButton, {}, {}, {}) + : PartnerInfo(partnerIndex, std::move(name), hasButton, {} /* m_defaultBannerUrl */) {} PartnerInfo::PartnerInfo(int partnerIndex, std::string && name) - : PartnerInfo(partnerIndex, std::move(name), false /* hasButton */, {}) + : PartnerInfo(partnerIndex, std::move(name), false /* hasButton */) {} std::string const & PartnerInfo::GetBannerPlacementId() const diff --git a/partners_api/partners.hpp b/partners_api/partners.hpp index 8645b972eb..7c90b33418 100644 --- a/partners_api/partners.hpp +++ b/partners_api/partners.hpp @@ -2,6 +2,7 @@ #include "indexer/ftypes_matcher.hpp" +#include <cstdint> #include <string> struct PartnerInfo @@ -11,15 +12,19 @@ struct PartnerInfo std::string const m_name; bool const m_hasButton = false; std::string const m_defaultBannerUrl; + int64_t const m_minMapVersion = 0; std::string const m_iosBannerPlacementId; std::string const m_androidBannerPlacementId; PartnerInfo(int partnerIndex, std::string && name, bool hasButton, - std::string && defaultBannerUrl, + std::string && defaultBannerUrl, uint64_t minMapVersion, std::string && iosBannerPlacementId, std::string && androidBannerPlacementId); PartnerInfo(int partnerIndex, std::string && name, bool hasButton, + std::string && defaultBannerUrl, uint64_t minMapVersion); + + PartnerInfo(int partnerIndex, std::string && name, bool hasButton, std::string && defaultBannerUrl); PartnerInfo(int partnerIndex, std::string && name, bool hasButton); diff --git a/partners_api/partners_list.hpp b/partners_api/partners_list.hpp index bac38d6c56..383ded7663 100644 --- a/partners_api/partners_list.hpp +++ b/partners_api/partners_list.hpp @@ -3,6 +3,8 @@ #include <vector> std::vector<PartnerInfo> const kPartners = { + PartnerInfo(1, "McArthurGlen", true /* m_hasButton */, + "https://localads.maps.me/redirects/mcarthurglen", 180705), PartnerInfo(2, "LuggageHero"), PartnerInfo(3, "BurgerKing", true /* m_hasButton */), PartnerInfo(4, "Adidas", true /* m_hasButton */), |