Debian Codegraph @

mtxclient/include/mtx/events/pinned_events.hpp

raw symbols SCIP
1 #pragma once
2
3 /// @file
4 /// @brief Events pinned in a room.
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 events {
16 namespace state {
17
18 //! `m.room.pinned_events` state event.
19 struct PinnedEvents
20 {
21 //! The ids of the pinned events.
22 std::vector<std::string> pinned;
23
24 friend void from_json(const nlohmann::json &obj, PinnedEvents &event);
25 friend void to_json(nlohmann::json &obj, const PinnedEvents &event);
26 };
27
28 } // namespace state
29 } // namespace events
30 } // namespace mtx