#include <Message.h>
Helper class to construct a MessageInterface
message.
◆ Message()
alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::Message |
( |
const std::string & |
nameSpace, |
|
|
const int |
version, |
|
|
const std::string & |
name |
|
) |
| |
|
inline |
Constructor
- Parameters
-
namespace | The namespace from this message |
version | The version from this message |
name | The handler name from this message |
◆ addIntegerInPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::addIntegerInPayload |
( |
const std::string & |
name, |
|
|
const int |
value |
|
) |
| |
|
inline |
Add an integer to existing payload
- Parameters
-
name | The name of the new member |
value | The value of the new member |
- Returns
- this
◆ addMember() [1/2]
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::addMember |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
inline |
Add a new member to the json
- Parameters
-
name | The name of the new member |
value | The value of the new member |
- Returns
- this
◆ addMember() [2/2]
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::addMember |
( |
const std::string & |
name, |
|
|
unsigned |
value |
|
) |
| |
|
inline |
Add a new member to the json
- Parameters
-
name | The name of the new member |
value | The value of the new member |
- Returns
- this
◆ addMemberInPayload() [1/2]
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::addMemberInPayload |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
|
inline |
Add a new member to existing payload
- Parameters
-
name | The name of the new member |
value | The value of the new member |
- Returns
- this
◆ addMemberInPayload() [2/2]
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::addMemberInPayload |
( |
const std::string & |
name, |
|
|
unsigned |
value |
|
) |
| |
|
inline |
Add a new member to the existing payload
- Parameters
-
name | The name of the new member |
value | The value of the new member |
- Returns
- this
◆ addPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::addPayload |
( |
| ) |
|
|
inline |
Add the payload to this message
- Returns
- this
◆ alloc()
auto alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::alloc |
( |
| ) |
-> decltype(mDocument.GetAllocator()) |
|
inline |
Retrieves the rapidjson allocator
- Returns
- The allocator
◆ get()
std::string alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::get |
( |
| ) |
|
|
inlinevirtual |
◆ getValue()
rapidjson::Value&& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::getValue |
( |
| ) |
|
|
inlinevirtual |
◆ setEnabledInPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setEnabledInPayload |
( |
bool |
enabled | ) |
|
|
inline |
Sets the json enabled for this message
- Parameters
-
enabled | The enabled bool to send |
- Returns
- this
◆ setParsedPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setParsedPayload |
( |
const std::string & |
payload | ) |
|
|
inline |
Sets the json payload for this message
- Parameters
-
payload | The payload to parse and send |
- Returns
- this
◆ setParsedPayloadInPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setParsedPayloadInPayload |
( |
const std::string & |
payload | ) |
|
|
inline |
Sets the json payload for this message
- Parameters
-
payload | The payload to parse and send |
- Returns
- this
◆ setPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setPayload |
( |
rapidjson::Value && |
payload | ) |
|
|
inline |
Sets the json payload for this message
- Parameters
-
payload | The payload to send |
- Returns
- this
◆ setStateInPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setStateInPayload |
( |
const std::string & |
state | ) |
|
|
inline |
Sets the json state for this message
- Parameters
-
- Returns
- this
◆ setTokenInPayload() [1/2]
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setTokenInPayload |
( |
const std::string & |
token | ) |
|
|
inline |
Sets the token for this message
- Parameters
-
- Returns
- this
◆ setTokenInPayload() [2/2]
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setTokenInPayload |
( |
unsigned |
token | ) |
|
|
inline |
Sets the token for this message
- Parameters
-
- Returns
- this
◆ setWindowIdInPayload()
Message& alexaClientSDK::sampleApplications::ipcServerSampleApp::messages::Message::setWindowIdInPayload |
( |
const std::string & |
windowId | ) |
|
|
inline |
Sets the windowId for this message
- Parameters
-
windowId | The target windowId of |
- Returns
- this
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/SampleApplications/IPCServerSampleApplication/LibIPCServerSampleApp/include/IPCServerSampleApp/Messages/Message.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0