Skip to content
Snippets Groups Projects
empty.hpp 603 B
Newer Older
/// @file
/// @brief Empty responses returned by different endpoints.

#if __has_include(<nlohmann/json_fwd.hpp>)
#include <nlohmann/json_fwd.hpp>
#else
#include <nlohmann/json.hpp>

#include "mtx/identifiers.hpp"

namespace mtx {
namespace responses {

//! Used to represent empty responses
{
    friend void from_json(const nlohmann::json &, Empty &);
};
//! The response for a logout.
Nicolas Werner's avatar
Nicolas Werner committed
using Logout = Empty;
//! The response after changing your display name.
using DisplayName = Empty;
//! The response after inviting a user to a room.
Nicolas Werner's avatar
Nicolas Werner committed
using RoomInvite = Empty;