BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
GWAck.h
1 #pragma once
2 
3 #include <Poco/JSON/Object.h>
4 
5 #include "gwmessage/GWMessage.h"
6 #include "gwmessage/GWResponse.h"
7 
8 namespace BeeeOn {
9 
27 class GWAck : public GWMessage {
28 public:
29  typedef Poco::SharedPtr<GWAck> Ptr;
30 
31  GWAck();
32  GWAck(const Poco::JSON::Object::Ptr object);
33 
34 protected:
35  GWAck(const GWMessageTypeEnum::Raw &type);
36 
37 public:
42 
46  GWResponse::Status status() const;
47 };
48 
49 }
The GWMessage is abstract class representing messages (including their contents), that are being sent...
Definition: GWMessage.h:21
GWMessageType type() const
Returns the type of the message.
Definition: GWMessage.cpp:55
Status
Definition: GWResponse.h:59
Represents an acknowledgement, that a response of the given id and status has been really delivered...
Definition: GWAck.h:27
void setStatus(GWResponse::Status status)
Set a status intended to match a proper response.
Definition: GWAck.cpp:22
GWResponse::Status status() const
Returns a status intended to match a proper response.
Definition: GWAck.cpp:27