BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
ServerAnswer extends regular Answer with ID of corresponding received GWMessage, which was translated to dispatched Command. This ID is used to create GWMessage to inform server about execution status of this Command. More...
#include <ServerAnswer.h>
Public Types | |
typedef Poco::AutoPtr < ServerAnswer > | Ptr |
Public Types inherited from BeeeOn::Answer | |
typedef Poco::AutoPtr< Answer > | Ptr |
Public Member Functions | |
ServerAnswer (AnswerQueue &answerQueue, const GlobalID &id) | |
ServerAnswer (const ServerAnswer &)=delete | |
void | setID (const GlobalID &id) |
GWResponseWithAckContext::Ptr | toResponse (const GWResponse::Status &status) const |
GlobalID | id () const |
Public Member Functions inherited from BeeeOn::Answer | |
Answer (AnswerQueue &answerQueue, const bool autoDispose=false) | |
Answer (const Answer &)=delete | |
void | setDirty (bool dirty) |
bool | isDirty () const |
bool | isPending () const |
Poco::Event & | event () |
bool | isEmpty () const |
unsigned long | resultsCount () const |
int | handlersCount () const |
void | setHandlersCount (unsigned long counter) |
void | addResult (Result *result) |
void | notifyUpdated () |
void | waitNotPending (const Poco::Timespan &timeout) |
Result::Ptr | at (size_t position) |
std::vector< Result::Ptr > ::iterator | begin () |
std::vector< Result::Ptr > ::iterator | end () |
ServerAnswer extends regular Answer with ID of corresponding received GWMessage, which was translated to dispatched Command. This ID is used to create GWMessage to inform server about execution status of this Command.
GWResponseWithAckContext::Ptr ServerAnswer::toResponse | ( | const GWResponse::Status & | status | ) | const |
Convert Answer to appropriate GWResponseWithAckContext if possible.