blob: 7225decda72c8fff3eefb317ec9b25939305b5b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#pragma once
#include <cstdint>
#include <string>
namespace storage
{
class Storage;
}
namespace promo
{
class Api;
class DownloaderPromo
{
public:
// Do not change the order.
enum class Type : uint8_t
{
NoPromo = 0,
BookmarkCatalog = 1,
Megafon = 2
};
struct Banner
{
Banner() = default;
Banner(Type type, std::string const & url)
: m_type(type)
, m_url(url)
{}
Type m_type = Type::NoPromo;
std::string m_url;
};
static Banner GetBanner(storage::Storage const & storage, Api const & promoApi,
std::string const & mwmId, std::string const & currentLocale,
bool hasRemoveAdsSubscription);
};
} // namespace promo
|