AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
AVSDirective.cpp File Reference
#include "AVSCommon/AVS/AVSDirective.h"
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include "AVSCommon/Utils/Logger/Logger.h"
#include <rapidjson/document.h>
Include dependency graph for AVSDirective.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::avs
 

Macros

#define LX(event)   alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
 

Functions

static const std::string alexaClientSDK::avsCommon::avs::TAG ("AvsDirective")
 String to identify log entries originating from this file. More...
 
static bool alexaClientSDK::avsCommon::avs::parseDocument (const std::string &unparsedDirective, Document *document)
 
static std::shared_ptr< AVSMessageHeader > alexaClientSDK::avsCommon::avs::parseHeader (const Document &document, AVSDirective::ParseStatus *parseStatus)
 
static std::string alexaClientSDK::avsCommon::avs::parsePayload (const Document &document, AVSDirective::ParseStatus *parseStatus)
 
static utils::Optional< AVSMessageEndpoint > alexaClientSDK::avsCommon::avs::parseEndpoint (const Document &document)
 

Variables

static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_DIRECTIVE_KEY = "directive"
 JSON key to get the directive object of a message. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_HEADER_KEY = "header"
 JSON key to get the header object of a message. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_NAMESPACE_KEY = "namespace"
 JSON key to get the namespace value of a header. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_NAME_KEY = "name"
 JSON key to get the name value of a header. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_ID_KEY = "messageId"
 JSON key to get the messageId value of a header. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_DIALOG_REQUEST_ID_KEY = "dialogRequestId"
 JSON key to get the dialogRequestId value of a header. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_PAYLOAD_KEY = "payload"
 JSON key to get the payload object of a message. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_INSTANCE_KEY = "instance"
 JSON key to get the optional instance object of a message. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_MESSAGE_PAYLOAD_VERSION_KEY = "payloadVersion"
 JSON key to get the payload version object of a message. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_CORRELATION_TOKEN_KEY = "correlationToken"
 JSON key to get the correlationToken value of a header. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_EVENT_CORRELATION_TOKEN_KEY = "eventCorrelationToken"
 JSON key to get the eventCorrelationToken value of the header. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_ENDPOINT_KEY = "endpoint"
 JSON key to get the endpoint object of a message. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_ENDPOINT_ID_KEY = "endpointId"
 JSON key to get the endpointId value of the endpoint. More...
 
static const std::string alexaClientSDK::avsCommon::avs::JSON_ENDPOINT_COOKIE_KEY = "cookie"
 JSON key to get the cookie value for the endpoint. More...
 

Macro Definition Documentation

◆ LX

#define LX (   event)    alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)

Create a LogEntry using this file's TAG and the specified event string.

Parameters
eventThe event string for this LogEntry.

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