My Project
Loading...
Searching...
No Matches
CommandHandler.hpp
1#pragma once
2
3#include "control/IMessageHandler.hpp"
4#include "extern/nlohmann/json.hpp"
5
6using json = nlohmann::json;
7
9public:
10 void handle(const std::string& messageId, const std::string& payload, System& system) override;
11 MessageType getHandledType() const override;
12
13private:
14 void handleStopCommand(const std::string& messageId, const json& commandData, System& system);
15 void handleStatusCommand(const std::string& messageId, const json& commandData, System& system);
16 void handlePingCommand(const std::string& messageId, const json& commandData, System& system);
17};
Definition CommandHandler.hpp:8
Definition IMessageHandler.hpp:9
Definition System.hpp:14