1 | #pragma once |
2 | |
3 | /// @file |
4 | /// @brief Response from creating 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 <mtx/identifiers.hpp> |
13 | |
14 | namespace mtx { |
15 | namespace responses { |
16 | //! Response from the `POST /_matrix/client/r0/createRoom` endpoint. |
17 | struct CreateRoom |
18 | { |
19 | //! The room ID of the newly created room. |
20 | mtx::identifiers::Room room_id; |
21 | |
22 | friend void from_json(const nlohmann::json &obj, CreateRoom &response); |
23 | }; |
24 | } |
25 | } |
26 | |