AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
JsonHeader.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_JSONHEADER_H_
17 #define ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_JSONHEADER_H_
18 
19 #include <string>
20 
21 // Todo ACSDK-443: Move the JSON to text file
23 // clang-format off
24 static const std::string SYNCHRONIZE_STATE_JSON =
25  "{"
26  "\"context\":[{"
27  "\"header\":{"
28  "\"name\":\"SpeechState\","
29  "\"namespace\":\"SpeechSynthesizer\""
30  "},"
31  "\"payload\":{"
32  "\"playerActivity\":\"FINISHED\","
33  "\"offsetInMilliseconds\":0,"
34  "\"token\":\"\""
35  "}"
36  "}],"
37  "\"event\":{"
38  "\"header\":{"
39  "\"messageId\":\"00000000-0000-0000-0000-000000000000\","
40  "\"name\":\"SynchronizeState\","
41  "\"namespace\":\"System\""
42  "},"
43  "\"payload\":{"
44  "}"
45  "}"
46  "}";
47 // clang-format on
48 
49 #endif // ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_JSONHEADER_H_
SYNCHRONIZE_STATE_JSON
static const std::string SYNCHRONIZE_STATE_JSON
This is a basic synchronize JSON message which may be used to initiate a connection with AVS.
Definition: JsonHeader.h:24

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0