BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
DeviceUnpairResult.h
1 #pragma once
2 
3 #include <set>
4 
5 #include "core/Result.h"
6 #include "model/DeviceID.h"
7 
8 namespace BeeeOn {
9 
18 class DeviceUnpairResult : public Result {
19 public:
20  typedef Poco::AutoPtr<DeviceUnpairResult> Ptr;
21 
22  DeviceUnpairResult(Poco::AutoPtr<Answer> answer);
23 
24  void setUnpaired(const std::set<DeviceID> &ids);
25  const std::set<DeviceID> &unpaired() const;
26 
27 private:
28  std::set<DeviceID> m_unpaired;
29 };
30 
31 }
DeviceUnpairResult holds set of devices that have been unpaired. If the set is empty, no device have been unpaired but the operation was successful.
Definition: DeviceUnpairResult.h:18
Definition: Result.h:29