16 #ifndef ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_MESSAGES_MESSAGE_H_ 17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_MESSAGES_MESSAGE_H_ 21 #include <rapidjson/document.h> 22 #include <rapidjson/writer.h> 23 #include <rapidjson/stringbuffer.h> 46 namespace sampleApplications {
47 namespace ipcServerSampleApp {
55 rapidjson::Document mParsedDocument;
66 mParsedDocument(&
alloc()) {
236 rapidjson::StringBuffer buffer;
239 rapidjson::StringBuffer,
242 rapidjson::CrtAllocator,
243 rapidjson::kWriteNanAndInfFlag>
248 return std::string(buffer.GetString(), buffer.GetSize());
264 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_MESSAGES_MESSAGE_H_ const char MSG_TOKEN_TAG[]
The token json key in the message.
Definition: Message.h:37
const char MSG_PAYLOAD_TAG[]
The payload json key in the message.
Definition: Message.h:28
const char MSG_PAYLOAD_TAG[]
The payload json key in the message.
Definition: MessageInterface.h:34
Message & addMemberInPayload(const std::string &name, const std::string &value)
Definition: Message.h:101
rapidjson::Value && getValue()
Definition: Message.h:255
Message & addMember(const std::string &name, const std::string &value)
Definition: Message.h:75
::std::string string
Definition: gtest-port.h:1097
Message & setParsedPayload(const std::string &payload)
Definition: Message.h:179
const std::string EMPTY_JSON("{}")
String representation of empty json.
const char MSG_WINDOWID_TAG[]
The windowId json key in the message.
Definition: Message.h:31
Message & addMember(const std::string &name, unsigned value)
Definition: Message.h:89
Message(const std::string &nameSpace, const int version, const std::string &name)
Definition: Message.h:64
auto alloc() -> decltype(mDocument.GetAllocator())
Definition: Message.h:227
Message & setEnabledInPayload(bool enabled)
Definition: Message.h:138
Message & setPayload(rapidjson::Value &&payload)
Definition: Message.h:218
bool Value(const T &value, M matcher)
Definition: gmock-matchers.h:4347
const char MSG_STATE_TAG[]
The state json key in the message.
Definition: Message.h:40
rapidjson::Document mDocument
Definition: MessageInterface.h:56
Message & addIntegerInPayload(const std::string &name, const int value)
Definition: Message.h:115
Message & addPayload()
Definition: Message.h:208
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: MessageInterface.h:54
const char MSG_ENABLED_TAG[]
The enabled json key in the message.
Definition: Message.h:34
Message & setTokenInPayload(unsigned token)
Definition: Message.h:169
Message & setStateInPayload(const std::string &state)
Definition: Message.h:148
rapidjson::Value mPayload
Definition: MessageInterface.h:57
Message & addMemberInPayload(const std::string &name, unsigned value)
Definition: Message.h:127
Message & setParsedPayloadInPayload(const std::string &payload)
Definition: Message.h:189
Message & setTokenInPayload(const std::string &token)
Definition: Message.h:159
const T & move(const T &t)
Definition: gtest-port.h:1317
Message & setWindowIdInPayload(const std::string &windowId)
Definition: Message.h:199