BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWSearchRequest.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 #include <Poco/Timespan.h>
5 #include <Poco/JSON/Object.h>
6 
7 #include "gwmessage/GWRequest.h"
8 #include "model/DeviceCriteria.h"
9 #include "model/DevicePrefix.h"
10 
11 namespace BeeeOn {
12 
32 class GWSearchRequest : public GWRequest {
33 public:
34  typedef Poco::SharedPtr<GWSearchRequest> Ptr;
35 
37  GWSearchRequest(const Poco::JSON::Object::Ptr object);
38 
39  void setDuration(const Poco::Timespan &duration);
40  Poco::Timespan duration() const;
41 
42  void setDevicePrefix(const DevicePrefix &prefix);
43  DevicePrefix devicePrefix() const;
44 
45  void setCriteria(const DeviceCriteria &criteria);
46  DeviceCriteria criteria() const;
47 };
48 
49 }
This message is used to request searching for a device by criteria. This is a kind of a discovery pro...
Definition: GWSearchRequest.h:32
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
DeviceCriteria holds a criteria for device searching. Device can be search by one of the following pr...
Definition: DeviceCriteria.h:20