forked from organicmaps/organicmaps
Added PW tags for remove ads
This commit is contained in:
parent
d2ab1ff3c0
commit
bb4f7a85a1
3 changed files with 11 additions and 1 deletions
|
@ -163,13 +163,19 @@ void Purchase::SetSubscriptionEnabled(SubscriptionType type, bool isEnabled)
|
|||
for (auto & listener : m_listeners)
|
||||
listener->OnSubscriptionChanged(type, isEnabled);
|
||||
|
||||
auto const nowStr = GetPlatform().GetMarketingService().GetPushWooshTimestamp();
|
||||
if (type == SubscriptionType::BookmarkCatalog)
|
||||
{
|
||||
auto const nowStr = GetPlatform().GetMarketingService().GetPushWooshTimestamp();
|
||||
GetPlatform().GetMarketingService().SendPushWooshTag(isEnabled ?
|
||||
marketing::kBookmarkCatalogSubscriptionEnabled :
|
||||
marketing::kBookmarkCatalogSubscriptionDisabled, nowStr);
|
||||
}
|
||||
else if (type == SubscriptionType::RemoveAds)
|
||||
{
|
||||
GetPlatform().GetMarketingService().SendPushWooshTag(isEnabled ?
|
||||
marketing::kRemoveAdsSubscriptionEnabled :
|
||||
marketing::kRemoveAdsSubscriptionDisabled, nowStr);
|
||||
}
|
||||
}
|
||||
|
||||
void Purchase::Validate(ValidationInfo const & validationInfo, std::string const & accessToken)
|
||||
|
|
|
@ -28,6 +28,8 @@ char const * const kDiscoveryButtonDiscovered = "discovery_button_discovered";
|
|||
char const * const kBookHotelOnBookingComDiscovered = "hotel_book_bcom_discovered";
|
||||
char const * const kBookmarkCatalogSubscriptionEnabled = "bookmark_catalog_subscription_enabled";
|
||||
char const * const kBookmarkCatalogSubscriptionDisabled = "bookmark_catalog_subscription_disabled";
|
||||
char const * const kRemoveAdsSubscriptionEnabled = "remove_ads_subscription_enabled";
|
||||
char const * const kRemoveAdsSubscriptionDisabled = "remove_ads_subscription_disabled";
|
||||
|
||||
// Events.
|
||||
char const * const kDownloaderMapActionFinished = "Downloader_Map_action_finished";
|
||||
|
|
|
@ -32,6 +32,8 @@ extern char const * const kDiscoveryButtonDiscovered;
|
|||
extern char const * const kBookHotelOnBookingComDiscovered;
|
||||
extern char const * const kBookmarkCatalogSubscriptionEnabled;
|
||||
extern char const * const kBookmarkCatalogSubscriptionDisabled;
|
||||
extern char const * const kRemoveAdsSubscriptionEnabled;
|
||||
extern char const * const kRemoveAdsSubscriptionDisabled;
|
||||
|
||||
// Events.
|
||||
extern char const * const kDownloaderMapActionFinished;
|
||||
|
|
Loading…
Add table
Reference in a new issue