6 #include <Poco/SharedPtr.h>
7 #include <Poco/Timespan.h>
8 #include <Poco/JSON/Object.h>
10 #include "gwmessage/GWRequest.h"
11 #include "model/DeviceDescription.h"
12 #include "model/DeviceID.h"
13 #include "model/ModuleType.h"
66 typedef Poco::SharedPtr<GWNewDeviceRequest> Ptr;
71 void setDeviceID(
const DeviceID &deviceID);
74 void setProductName(
const std::string &name);
75 std::string productName()
const;
77 void setVendor(
const std::string &vendor);
78 std::string vendor()
const;
80 void setModuleTypes(
const std::list<ModuleType> &types);
81 std::list<ModuleType> moduleTypes()
const;
83 void setRefreshTime(
const Poco::Timespan &time);
84 Poco::Timespan refreshTime()
const;
89 static Poco::JSON::Array::Ptr serializeModuleTypes(
90 const std::list<ModuleType> &types);
91 static std::list<ModuleType> parseModuleTypes(
92 const Poco::JSON::Array::Ptr arrayOfTypes);
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
Represents a message sent by the gateway to the server after discovering new device in the sensoric n...
Definition: GWNewDeviceRequest.h:64
Definition: DeviceID.h:17
The class wraps information about a device's type. It describes its properties and provided sensor ty...
Definition: DeviceDescription.h:21