BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
ConradEvent.h
1 #pragma once
2 
3 #include <string>
4 
5 #include <Poco/Exception.h>
6 #include <Poco/JSON/Object.h>
7 #include <Poco/SharedPtr.h>
8 
9 #include "model/DeviceID.h"
10 #include "util/JsonUtil.h"
11 
12 namespace BeeeOn {
13 
18 public:
19  typedef Poco::SharedPtr<ConradEvent> Ptr;
20 
21 protected:
22  ConradEvent();
23 
24 public:
25  static ConradEvent parse(
26  DeviceID const &deviceID,
27  const Poco::JSON::Object::Ptr message);
28 
29  DeviceID id() const;
30  double rssi() const;
31  std::string event() const;
32  std::string raw() const;
33  std::string type() const;
34  std::string channels() const;
35  std::string protState() const;
36 
37 private:
38  DeviceID m_id;
39  double m_rssi;
40  std::string m_event;
41  std::string m_raw;
42  std::string m_type;
43  std::string m_channels;
44  std::string m_protState;
45 };
46 
47 }
Definition: ConradEvent.h:17
Definition: DeviceID.h:17