16 #ifndef ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_MESSAGES_MESSAGEINTERFACE_H_ 17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_MESSAGES_MESSAGEINTERFACE_H_ 21 #include <rapidjson/document.h> 22 #include <rapidjson/writer.h> 23 #include <rapidjson/stringbuffer.h> 26 namespace sampleApplications {
27 namespace ipcServerSampleApp {
69 auto& alloc = mDocument.GetAllocator();
72 header.AddMember(MSG_VERSION_TAG, version, alloc);
73 header.AddMember(MSG_NAMESPACE_TAG, nameSpace, alloc);
74 header.AddMember(MSG_NAME_TAG, name, alloc);
75 mDocument.AddMember(MSG_HEADER_TAG, header, alloc);
95 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_MESSAGES_MESSAGEINTERFACE_H_ const char MSG_PAYLOAD_TAG[]
The payload json key in the message.
Definition: MessageInterface.h:34
virtual rapidjson::Value && getValue()=0
::std::string string
Definition: gtest-port.h:1097
const char MSG_VERSION_TAG[]
The version json key in the message.
Definition: MessageInterface.h:37
const char MSG_NAME_TAG[]
The name json key in the message.
Definition: MessageInterface.h:43
MessageInterface(const int version, const std::string &nameSpace, const std::string &name)
Definition: MessageInterface.h:66
bool Value(const T &value, M matcher)
Definition: gmock-matchers.h:4347
rapidjson::Document mDocument
Definition: MessageInterface.h:56
const char MSG_HEADER_TAG[]
The namespace json key in the message.
Definition: MessageInterface.h:31
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: MessageInterface.h:54
rapidjson::Value mPayload
Definition: MessageInterface.h:57
const char MSG_NAMESPACE_TAG[]
The namespace json key in the message.
Definition: MessageInterface.h:40