AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Macros | Functions | Variables
DoNotDisturbCapabilityAgent.cpp File Reference
#include <chrono>
#include <rapidjson/error/en.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <AVSCommon/AVS/CapabilityConfiguration.h>
#include <AVSCommon/Utils/JSON/JSONGenerator.h>
#include <AVSCommon/Utils/JSON/JSONUtils.h>
#include <Settings/SettingEventMetadata.h>
#include "acsdkDoNotDisturb/DNDMessageRequest.h"
#include "acsdkDoNotDisturb/DNDSettingProtocol.h"
#include "acsdkDoNotDisturb/DoNotDisturbCapabilityAgent.h"
Include dependency graph for DoNotDisturbCapabilityAgent.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::capabilityAgents
 
 alexaClientSDK::capabilityAgents::doNotDisturb
 

Macros

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

Functions

static const std::chrono::seconds alexaClientSDK::capabilityAgents::doNotDisturb::HTTP_RESPONSE_TIMEOUT (15)
 A timeout for an HTTP response when sending change events. More...
 
static bool alexaClientSDK::capabilityAgents::doNotDisturb::parseDirectivePayload (const std::string &payload, Document *document)
 

Variables

static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::TAG {"DoNotDisturbCapabilityAgent"}
 String to identify log entries originating from this file. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::NAMESPACE = "Alexa.DoNotDisturb"
 The Alexa.DoNotDisturb interface namespace. More...
 
static const NamespaceAndName alexaClientSDK::capabilityAgents::doNotDisturb::DIRECTIVE_SETDONOTDISTURB {NAMESPACE, "SetDoNotDisturb"}
 The SetDoNotDisturb directive identifier. More...
 
static const NamespaceAndName alexaClientSDK::capabilityAgents::doNotDisturb::EVENT_DONOTDISTURBCHANGED {NAMESPACE, "DoNotDisturbChanged"}
 The DoNotDisturbChanged event identifier. More...
 
static const NamespaceAndName alexaClientSDK::capabilityAgents::doNotDisturb::EVENT_REPORTDONOTDISTURB {NAMESPACE, "ReportDoNotDisturb"}
 The ReportDoNotDisturb event identifier. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::DND_JSON_INTERFACE_TYPE = "AlexaInterface"
 AVS Interface type. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::DND_JSON_INTERFACE_NAME = "Alexa.DoNotDisturb"
 AVS Interface name. More...
 
static const std::string alexaClientSDK::capabilityAgents::doNotDisturb::DND_JSON_INTERFACE_VERSION = "1.0"
 AVS interface version. More...
 
static constexpr char alexaClientSDK::capabilityAgents::doNotDisturb::JSON_KEY_ENABLED [] = "enabled"
 Name for "enabled" JSON branch. 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
Theevent 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