Debian Codegraph @

mtxclient/include/mtx/responses/empty.hpp

raw symbols SCIP
1 #pragma once
2
3 /// @file
4 /// @brief Empty responses returned by different endpoints.
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 namespace mtx {
13 namespace responses {
14
15 //! Used to represent empty responses
16 struct Empty
17 {
18 friend void from_json(const nlohmann::json &, Empty &);
19 };
20
21 //! The response for a logout.
22 using Logout = Empty;
23 //! The response after changing your display name.
24 using DisplayName = Empty;
25 //! The response after inviting a user to a room.
26 using RoomInvite = Empty;
27 }
28 }