BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
ServerAnswer.h
1 #pragma once
2 
3 #include <Poco/AutoPtr.h>
4 
5 #include "core/Answer.h"
6 #include "model/GlobalID.h"
7 #include "server/GWMessageContext.h"
8 
9 namespace BeeeOn {
10 
17 class ServerAnswer : public Answer {
18 public:
19  typedef Poco::AutoPtr<ServerAnswer> Ptr;
20 
21  ServerAnswer(AnswerQueue &answerQueue, const GlobalID &id);
22 
23  ServerAnswer(const ServerAnswer&) = delete;
24 
25  void setID(const GlobalID &id);
26 
30  GWResponseWithAckContext::Ptr toResponse(const GWResponse::Status &status) const;
31 
32  GlobalID id() const;
33 
34 private:
35  GlobalID m_id;
36 };
37 
38 }
Definition: Answer.h:30
Definition: AnswerQueue.h:22
Definition: GlobalID.h:10
GWResponseWithAckContext::Ptr toResponse(const GWResponse::Status &status) const
Definition: ServerAnswer.cpp:27
Status
Definition: GWResponse.h:59
ServerAnswer extends regular Answer with ID of corresponding received GWMessage, which was translated...
Definition: ServerAnswer.h:17