BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
DeviceUnpairCommand.h
1 #pragma once
2 
3 #include <Poco/Timespan.h>
4 
5 #include "core/PrefixCommand.h"
6 #include "model/DeviceID.h"
7 
8 namespace BeeeOn {
9 
10 /*
11  * The device manager receives the requirement and it
12  * deletes this device from its network. The device
13  * manager receives the requirement and it deletes
14  * this device from its network. The individual states
15  * of the unpaired to which the command can get need
16  * to be reported on server.
17  */
19 public:
20  typedef Poco::AutoPtr<DeviceUnpairCommand> Ptr;
21 
23  const DeviceID &deviceID,
24  const Poco::Timespan &timeout = 10 * Poco::Timespan::SECONDS);
25 
26  DeviceID deviceID() const;
27 
28  Poco::Timespan timeout() const;
29 
30  std::string toString() const override;
31 
32  Result::Ptr deriveResult(Answer::Ptr answer) const override;
33 
34 protected:
36 
37 private:
38  DeviceID m_deviceID;
39  Poco::Timespan m_timeout;
40 };
41 
42 }
std::string toString() const override
Definition: DeviceUnpairCommand.cpp:31
Result::Ptr deriveResult(Answer::Ptr answer) const override
Definition: DeviceUnpairCommand.cpp:36
Definition: DeviceUnpairCommand.h:18
Ancestor for Commands that are related to a specific DevicePrefix only.
Definition: PrefixCommand.h:12
Definition: DeviceID.h:17