BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWDeviceAcceptRequest.h
1 #pragma once
2 
3 #include <map>
4 
5 #include <Poco/SharedPtr.h>
6 #include <Poco/JSON/Object.h>
7 
8 #include "gwmessage/GWRequest.h"
9 #include "model/DeviceID.h"
10 #include "model/RefreshTime.h"
11 #include "util/Loggable.h"
12 
13 namespace BeeeOn {
14 
38 public:
39  typedef Poco::SharedPtr<GWDeviceAcceptRequest> Ptr;
40 
42  GWDeviceAcceptRequest(const Poco::JSON::Object::Ptr object);
43 
44  void setDeviceID(const DeviceID &deviceID);
45  DeviceID deviceID() const;
46 
47  void setRefresh(const RefreshTime &refresh);
48  RefreshTime refresh() const;
49 
50  void setProperties(
51  const std::map<std::string, std::string> &properties);
52  std::map<std::string, std::string> properties() const;
53 };
54 
55 }
Represents a message sent by the server to the gateway, intended to inform gateway that the user acce...
Definition: GWDeviceAcceptRequest.h:37
RefreshTime represents time of refreshing values from sensors. E.g. sensors are polled periodically o...
Definition: RefreshTime.h:24
Abstract class representing a request message. The GWRequest can not be used alone, but it must be inherited by a specific request object.
Definition: GWRequest.h:25
Definition: Loggable.h:19
Definition: DeviceID.h:17