BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWNewDeviceGroupRequest.h
1 #pragma once
2 
3 #include <vector>
4 
5 #include <Poco/SharedPtr.h>
6 #include <Poco/JSON/Object.h>
7 
8 #include "gwmessage/GWRequest.h"
9 #include "model/DeviceDescription.h"
10 
11 namespace BeeeOn {
12 
65 public:
66  typedef Poco::SharedPtr<GWNewDeviceGroupRequest> Ptr;
67 
69  GWNewDeviceGroupRequest(const Poco::JSON::Object::Ptr object);
70 
71  void setGroupName(const std::string& groupName);
72  std::string groupName() const;
73 
74  void setVendor(const std::string& vendor);
75  std::string vendor() const;
76 
77  void addDeviceDescription(const DeviceDescription& deviceDescription);
78  std::vector<DeviceDescription> deviceDescriptions() const;
79 };
80 
81 }
Represents a message sent by the gateway to the server after discovering a device consisting of a gro...
Definition: GWNewDeviceGroupRequest.h:64
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
The class wraps information about a device&#39;s type. It describes its properties and provided sensor ty...
Definition: DeviceDescription.h:21