Debian Codegraph @

mtxclient/include/mtx/events/unknown.hpp

raw symbols SCIP
1 #pragma once
2
3 /// @file
4 /// @brief The room name state event.
5
6 #if __has_include(<nlohmann/json_fwd.hpp>)
7 #include <nlohmann/json_fwd.hpp>
8 #else
9 #include <nlohmann/json.hpp>
10 #endif
11
12 #include <string>
13
14 namespace mtx {
15 //! Namespace for all events.
16 namespace events {
17 //! Placeholder event for if an event is unsupported
18 struct Unknown
19 {
20 //! The original content
21 std::string content;
22 //! The original type
23 std::string type;
24
25 friend void from_json(const nlohmann::json &obj, Unknown &event);
26 friend void to_json(nlohmann::json &obj, const Unknown &event);
27 };
28
29 } // namespace events
30 } // namespace mtx