BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWNoticeRequest.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 #include <Poco/Timestamp.h>
5 #include <Poco/JSON/Object.h>
6 
7 #include "gwmessage/GWRequest.h"
8 #include "model/Severity.h"
9 
10 namespace BeeeOn {
11 
43 class GWNoticeRequest : public GWRequest {
44 public:
45  typedef Poco::SharedPtr<GWNoticeRequest> Ptr;
46 
48  GWNoticeRequest(const Poco::JSON::Object::Ptr object);
49 
50  void setAt(const Poco::Timestamp &at);
51  Poco::Timestamp at() const;
52 
53  void setSeverity(const Severity &severity);
54  Severity severity() const;
55 
56  void setKey(const std::string &key);
57  std::string key() const;
58 
59  void setContext(const Poco::JSON::Object::Ptr context);
60  Poco::JSON::Object::Ptr context() const;
61 };
62 
63 }
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: Enum.h:106
GWNoticeRequest allows a gateway to send a notice about something that happen. It can report progress...
Definition: GWNoticeRequest.h:43