summaryrefslogtreecommitdiff
path: root/src/localization/line_id.cpp
blob: 7bfeb7c20ae612793317e561b2a182e691e4fef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "line_id.hpp"

#include <optional>
#include <string>

namespace bot {
  namespace loc {
    std::optional<LineId> string_to_line_id(const std::string &str) {
      if (str == "ping.response") {
        return LineId::PingResponse;
      } else {
        return std::nullopt;
      }
    }
  }
}