From 91ab4d637e1541d862eaffa93de721f436d95e7f Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Wed, 2 Nov 2022 23:57:56 +0100 Subject: [PATCH] Fix docs for some responses --- include/mtx/responses/device.hpp | 1 + include/mtx/responses/empty.hpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/mtx/responses/device.hpp b/include/mtx/responses/device.hpp index 079361884..c5569c4d2 100644 --- a/include/mtx/responses/device.hpp +++ b/include/mtx/responses/device.hpp @@ -18,6 +18,7 @@ namespace mtx { namespace responses { +//! Information about one of your devices. struct Device { //! **Required.** Identifier of this device. diff --git a/include/mtx/responses/empty.hpp b/include/mtx/responses/empty.hpp index 3a47f45f6..694a77236 100644 --- a/include/mtx/responses/empty.hpp +++ b/include/mtx/responses/empty.hpp @@ -14,14 +14,17 @@ namespace mtx { namespace responses { -// Used to represent empty responses +//! Used to represent empty responses struct Empty { friend void from_json(const nlohmann::json &, Empty &); }; +//! The response for a logout. using Logout = Empty; +//! The response after changing your display name. using DisplayName = Empty; +//! The response after inviting a user to a room. using RoomInvite = Empty; } } -- GitLab