blob: e9be2768e12074eef3553d308e15ab1acec804c5 (
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
43
44
45
|
#pragma once
#include "base/assert.hpp"
#include <string>
namespace ads
{
struct Banner
{
enum class Place : uint8_t
{
Search = 0,
Default = 1
};
enum class Type : uint8_t
{
None = 0,
Facebook = 1,
RB = 2,
Mopub = 3,
Google = 4
};
Banner() = default;
Banner(Type t, std::string const & id) : m_type(t), m_bannerId(id) {}
Type m_type = Type::None;
std::string m_bannerId;
};
inline std::string DebugPrint(Banner::Type type)
{
switch (type)
{
case Banner::Type::None: return "None";
case Banner::Type::Facebook: return "Facebook";
case Banner::Type::RB: return "RB";
case Banner::Type::Mopub: return "Mopub";
case Banner::Type::Google: return "Google";
}
UNREACHABLE();
}
} // namespace ads
|