1#pragma once
2
3/// @file
4/// @brief A reaction event used to attach small annotations to events.
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#include "mtx/events/common.hpp"
15
16namespace mtx {
17namespace events {
18namespace msg {
19
20//! Content for the `m.reaction` event.
21struct Reaction
22{
23 //! Should be an annotation relation
24 common::Relations relations;
25
26 friend void from_json(const nlohmann::json &obj, Reaction &event);
27 friend void to_json(nlohmann::json &obj, const Reaction &event);
28};
29
30} // namespace msg
31} // namespace events
32} // namespace mtx
33