My Project
Loading...
Searching...
No Matches
include
control
handlers
CommandHandler.hpp
1
#pragma once
2
3
#include "control/IMessageHandler.hpp"
4
#include "extern/nlohmann/json.hpp"
5
6
using
json = nlohmann::json;
7
8
class
CommandHandler
:
public
IMessageHandler
{
9
public
:
10
void
handle(
const
std::string& messageId,
const
std::string& payload,
System
& system)
override
;
11
MessageType getHandledType()
const override
;
12
13
private
:
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
};
CommandHandler
Definition
CommandHandler.hpp:8
IMessageHandler
Definition
IMessageHandler.hpp:9
System
Definition
System.hpp:14
Generated by
1.9.8