Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-11-01 15:27:08 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-11-02 13:55:24 +0300
commit4e3f3882adc1dd17bbf344deb3369d6b36d8f641 (patch)
tree1ef061a49fc2320a07faf45ab84440ae37a5df3e /storage
parentd5bce83367b8aca5fa410e7206fbf5ad6568d183 (diff)
Added PushWoosh tags initialization
Diffstat (limited to 'storage')
-rw-r--r--storage/country.cpp2
-rw-r--r--storage/storage.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/storage/country.cpp b/storage/country.cpp
index c83ad03caf..e69fe6d6e1 100644
--- a/storage/country.cpp
+++ b/storage/country.cpp
@@ -327,7 +327,7 @@ int64_t LoadCountries(string const & jsonBuffer, TCountryTree & countries,
}
stringstream ss;
ss << version;
- GetPlatform().SendPushWooshTag("map_version", ss.str());
+ GetPlatform().GetMarketingService().SendPushWooshTag(marketing::kMapVersion, ss.str());
return version;
}
diff --git a/storage/storage.cpp b/storage/storage.cpp
index 57210b0411..302e6702b8 100644
--- a/storage/storage.cpp
+++ b/storage/storage.cpp
@@ -560,9 +560,9 @@ void Storage::DownloadNextCountryFromQueue()
});
TCountriesVec localMaps;
GetLocalRealMaps(localMaps);
- GetPlatform().SendPushWooshTag("map_listing", localMaps);
+ GetPlatform().GetMarketingService().SendPushWooshTag(marketing::kMapListing, localMaps);
if (!localMaps.empty())
- GetPlatform().SendPushWooshTag("map_download_discovered");
+ GetPlatform().GetMarketingService().SendPushWooshTag(marketing::kMapDownloadDiscovered);
return;
}
@@ -830,7 +830,8 @@ void Storage::OnMapDownloadFinished(TCountryId const & countryId, bool success,
{"status", success ? "ok" : "failed"},
{"version", strings::to_string(GetCurrentDataVersion())},
{"option", DebugPrint(files)}}));
- GetPlatform().SendMarketingEvent("Downloader_Map_action_finished", {{"action", "download"}});
+ GetPlatform().GetMarketingService().SendMarketingEvent(marketing::kDownloaderMapActionFinished,
+ {{"action", "download"}});
}
success = success && RegisterDownloadedFiles(countryId, files);