3 #include <Poco/SharedPtr.h>
4 #include <Poco/JSON/Object.h>
6 #include "gwmessage/GWMessage.h"
57 typedef Poco::SharedPtr<GWResponse> Ptr;
80 GWResponse(
const Poco::JSON::Object::Ptr
object);
86 void setStatus(
Status status);
94 void setAckExpected(
bool expected);
95 bool ackExpected()
const;
100 Poco::SharedPtr<GWAck>
ack()
const;
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
Definition: GWResponse.h:71
static Status convertStatus(const int value)
Covert integer value to GWResponse::Status and return it.
Definition: GWResponse.cpp:59
Definition: GWResponse.h:67
Poco::SharedPtr< GWAck > ack() const
Creates and returns a corresponding GWAck message.
Definition: GWResponse.cpp:85
Definition: GWResponse.h:76
Represents a response to a request message (subclass of a GWRequest). The GWResponse can be used alon...
Definition: GWResponse.h:55
Definition: GWResponse.h:63