blob: 34d170ad78b88c21b65aa68b7e3decbf3a25e179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "stream.hpp"
namespace bot::schemas {
EventType string_to_event_type(const std::string &type) {
if (type == "live") {
return EventType::LIVE;
} else if (type == "offline") {
return EventType::OFFLINE;
} else if (type == "title") {
return EventType::TITLE;
} else if (type == "game") {
return EventType::GAME;
} else if (type == "github") {
return EventType::GITHUB;
} else {
return EventType::CUSTOM;
}
}
}
|