BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
DeviceAcceptCommand.h
1 #pragma once
2 
3 #include "core/PrefixCommand.h"
4 #include "model/DeviceID.h"
5 
6 namespace BeeeOn {
7 
8 /*
9  * The server informs gateway about accepting of a new
10  * device from user.
11  */
13 public:
14  typedef Poco::AutoPtr<DeviceAcceptCommand> Ptr;
15 
16  DeviceAcceptCommand(const DeviceID &deviceID);
17 
18  DeviceID deviceID() const;
19 
20  std::string toString() const override;
21 
22 protected:
24 
25 private:
26  DeviceID m_deviceID;
27 };
28 
29 }
Definition: DeviceAcceptCommand.h:12
std::string toString() const override
Definition: DeviceAcceptCommand.cpp:21
Ancestor for Commands that are related to a specific DevicePrefix only.
Definition: PrefixCommand.h:12
Definition: DeviceID.h:17