clboss/Boss/Msg/CommandResponse.hpp
2020-09-07 17:51:36 +08:00

22 lines
492 B
C++

#ifndef BOSS_MSG_COMMANDRESPONSE_HPP
#define BOSS_MSG_COMMANDRESPONSE_HPP
#include"Json/Out.hpp"
namespace Boss { namespace Msg {
/** struct Boss::Msg::CommandResponse
*
* @brief Emit in response to a Boss::Msg::CommandRequest.
* If multiple responses for the same ID are emitted, or
* for a nonexistent ID, the extras/nonexistent are
* silently ignored.
*/
struct CommandResponse {
std::uint64_t id;
Json::Out response;
};
}}
#endif /* !defined(BOSS_MSG_COMMANDRESPONSE_HPP) */