diff options
Diffstat (limited to 'bot/src/schemas/stream.cpp')
| -rw-r--r-- | bot/src/schemas/stream.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bot/src/schemas/stream.cpp b/bot/src/schemas/stream.cpp index dbd5929..7671de5 100644 --- a/bot/src/schemas/stream.cpp +++ b/bot/src/schemas/stream.cpp @@ -32,4 +32,20 @@ namespace bot::schemas { return "custom"; } } + + std::optional<int> string_to_event_flag(const std::string &type) { + if (type == "massping") { + return MASSPING; + } + + return std::nullopt; + } + + std::optional<std::string> event_flag_to_string(const int &type) { + if (type == MASSPING) { + return "massping"; + } + + return std::nullopt; + } } |
