diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2018-05-25 15:36:23 +0300 |
---|---|---|
committer | yoksnod <donskdmitry@mail.ru> | 2018-05-29 20:38:03 +0300 |
commit | d85298d0ffc6bca9bcb54c3c669cd2b86eeb763d (patch) | |
tree | 81df403a05e845d499d3df42b59e8d84c129fb4d /partners_api | |
parent | 7e82b8b9f6f481ed016bc5bd8579658909cc7f40 (diff) |
Added new partners
Diffstat (limited to 'partners_api')
-rw-r--r-- | partners_api/partners.cpp | 36 | ||||
-rw-r--r-- | partners_api/partners.hpp | 8 |
2 files changed, 37 insertions, 7 deletions
diff --git a/partners_api/partners.cpp b/partners_api/partners.cpp index a252805ff8..db5bc1b1d8 100644 --- a/partners_api/partners.cpp +++ b/partners_api/partners.cpp @@ -13,9 +13,25 @@ #include <utility> std::vector<PartnerInfo> const kPartners = { - PartnerInfo(2, "LuggageHero"), - - PartnerInfo(3, "BurgerKing", true /* m_hasButton */) + PartnerInfo(2, "LuggageHero"), + PartnerInfo(3, "BurgerKing", true /* m_hasButton */), + PartnerInfo(4, "Adidas", true /* m_hasButton */), + PartnerInfo(6, "AdidasOriginal", true /* m_hasButton */), + PartnerInfo(7, "AdidasKids", true /* m_hasButton */), + PartnerInfo(8, "CostaCoffee", true /* m_hasButton */, + "https://localads.maps.me/redirects/costa_coffee"), + PartnerInfo(9, "TGIFridays", true /* m_hasButton */, + "https://localads.maps.me/redirects/tgi_fridays"), + PartnerInfo(10, "Sportmaster", true /* m_hasButton */, + "https://localads.maps.me/redirects/sportmaster"), + PartnerInfo(11, "KFC", true /* m_hasButton */), + PartnerInfo(12, "AzbukaVkusa", true /* m_hasButton */, + "https://localads.maps.me/redirects/azbuka_vkusa"), + PartnerInfo(13, "Shokoladnitsa", true /* m_hasButton */), + PartnerInfo(14, "Yakitoriya", true /* m_hasButton */), + PartnerInfo(15, "Menza", true /* m_hasButton */), + PartnerInfo(16, "YanPrimus", true /* m_hasButton */), + PartnerInfo(17, "GinNo", true /* m_hasButton */), }; namespace @@ -25,21 +41,29 @@ PartnerInfo const kFakePartner(kFakePartnerIndex, {}); } // namespace PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton, - std::string && iosBannerPlacementId, std::string && androidBannerPlacementId) + std::string && defaultBannerUrl, + std::string && iosBannerPlacementId, + std::string && androidBannerPlacementId) : m_partnerIndex(partnerIndex) , m_type("partner" + strings::to_string(partnerIndex)) , m_name(std::move(name)) , m_hasButton(hasButton) + , m_defaultBannerUrl(std::move(defaultBannerUrl)) , m_iosBannerPlacementId(std::move(iosBannerPlacementId)) , m_androidBannerPlacementId(std::move(androidBannerPlacementId)) {} +PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton, + std::string && defaultBannerUrl) + : PartnerInfo(partnerIndex, std::move(name), hasButton, std::move(defaultBannerUrl), {}, {}) +{} + PartnerInfo::PartnerInfo(int partnerIndex, std::string && name, bool hasButton) - : PartnerInfo(partnerIndex, std::move(name), hasButton, {}, {}) + : PartnerInfo(partnerIndex, std::move(name), hasButton, {}, {}, {}) {} 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 a0c367e0b6..16fbc7e37f 100644 --- a/partners_api/partners.hpp +++ b/partners_api/partners.hpp @@ -10,11 +10,17 @@ struct PartnerInfo std::string const m_type; std::string const m_name; bool const m_hasButton = false; + std::string const m_defaultBannerUrl; std::string const m_iosBannerPlacementId; std::string const m_androidBannerPlacementId; PartnerInfo(int partnerIndex, std::string && name, bool hasButton, - std::string && iosBannerPlacementId, std::string && androidBannerPlacementId); + std::string && defaultBannerUrl, + std::string && iosBannerPlacementId, + std::string && androidBannerPlacementId); + + PartnerInfo(int partnerIndex, std::string && name, bool hasButton, + std::string && defaultBannerUrl); PartnerInfo(int partnerIndex, std::string && name, bool hasButton); |