AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Classes | Functions | Variables
alexaClientSDK::capabilityAgents::rangeController Namespace Reference

Namespaces

 test
 

Classes

class  RangeControllerAttributeBuilder
 
class  RangeControllerCapabilityAgent
 

Functions

static bool isRangeControllerAttributesValid (const RangeControllerAttributes &rangeControllerAttributes, const RangeControllerInterface::RangeControllerConfiguration &rangeControllerConfiguration)
 
static bool parseDirectivePayload (const std::string &payload, Document *document)
 

Variables

static const std::string TAG {"RangeControllerAttributeBuilder"}
 String to identify log entries originating from this file. More...
 
static const std::string TAG {"RangeControllerCapabilityAgent"}
 String to identify log entries originating from this file. More...
 
static const std::string NAMESPACE {"Alexa.RangeController"}
 The namespace for this capability agent. More...
 
static const std::string INTERFACE_VERSION {"3"}
 The supported version. More...
 
static const std::string NAME_SETRANGEVALUE {"SetRangeValue"}
 The name for SetRangeValue directive. More...
 
static const std::string NAME_ADJUSTRANGEVALUE {"AdjustRangeValue"}
 The name for AdjustRangeValue directive. More...
 
static const std::string RANGEVALUE_PROPERTY_NAME {"rangeValue"}
 The name of rangeValue property. More...
 
static const std::string CAPABILITY_RESOURCES_KEY {"capabilityResources"}
 The capabilityResources key. More...
 
static const std::string CAPABILITY_CONFIGURATION_KEY {"configuration"}
 The configuration key. More...
 
static const std::string CAPABILITY_SEMANTICS_KEY {"semantics"}
 The semantics key. More...
 
static const char RANGE_VALUE_KEY [] = "rangeValue"
 The key in the directive payload. More...
 
static const char RANGE_VALUE_DELTA_KEY [] = "rangeValueDelta"
 The key in the directive payload. More...
 

Function Documentation

◆ isRangeControllerAttributesValid()

static bool alexaClientSDK::capabilityAgents::rangeController::isRangeControllerAttributesValid ( const RangeControllerAttributes rangeControllerAttributes,
const RangeControllerInterface::RangeControllerConfiguration rangeControllerConfiguration 
)
static

Helper function to validate the range controller attributes and configuration.

Parameters
rangeControllerAttributesThe range controller attribute to be validated.
rangeControllerConfigurationThe mode controller configuration to be validated.
Returns
true if valid, otherwise false.

◆ parseDirectivePayload()

static bool alexaClientSDK::capabilityAgents::rangeController::parseDirectivePayload ( const std::string &  payload,
Document *  document 
)
static

Parses a directive payload JSON and returns a parsed document object.

Parameters
payloadJSON string to parse.
[out]documentPointer to a parsed document.
Returns
true if parsing was successful, false otherwise.

Variable Documentation

◆ CAPABILITY_CONFIGURATION_KEY

const std::string alexaClientSDK::capabilityAgents::rangeController::CAPABILITY_CONFIGURATION_KEY {"configuration"}
static

The configuration key.

◆ CAPABILITY_RESOURCES_KEY

const std::string alexaClientSDK::capabilityAgents::rangeController::CAPABILITY_RESOURCES_KEY {"capabilityResources"}
static

The capabilityResources key.

◆ CAPABILITY_SEMANTICS_KEY

const std::string alexaClientSDK::capabilityAgents::rangeController::CAPABILITY_SEMANTICS_KEY {"semantics"}
static

The semantics key.

◆ INTERFACE_VERSION

const std::string alexaClientSDK::capabilityAgents::rangeController::INTERFACE_VERSION {"3"}
static

The supported version.

◆ NAME_ADJUSTRANGEVALUE

const std::string alexaClientSDK::capabilityAgents::rangeController::NAME_ADJUSTRANGEVALUE {"AdjustRangeValue"}
static

The name for AdjustRangeValue directive.

◆ NAME_SETRANGEVALUE

const std::string alexaClientSDK::capabilityAgents::rangeController::NAME_SETRANGEVALUE {"SetRangeValue"}
static

The name for SetRangeValue directive.

◆ NAMESPACE

const std::string alexaClientSDK::capabilityAgents::rangeController::NAMESPACE {"Alexa.RangeController"}
static

The namespace for this capability agent.

◆ RANGE_VALUE_DELTA_KEY

const char alexaClientSDK::capabilityAgents::rangeController::RANGE_VALUE_DELTA_KEY[] = "rangeValueDelta"
static

The key in the directive payload.

◆ RANGE_VALUE_KEY

const char alexaClientSDK::capabilityAgents::rangeController::RANGE_VALUE_KEY[] = "rangeValue"
static

The key in the directive payload.

◆ RANGEVALUE_PROPERTY_NAME

const std::string alexaClientSDK::capabilityAgents::rangeController::RANGEVALUE_PROPERTY_NAME {"rangeValue"}
static

The name of rangeValue property.

◆ TAG [1/2]

const std::string alexaClientSDK::capabilityAgents::rangeController::TAG {"RangeControllerAttributeBuilder"}
static

String to identify log entries originating from this file.

◆ TAG [2/2]

const std::string alexaClientSDK::capabilityAgents::rangeController::TAG {"RangeControllerCapabilityAgent"}
static

String to identify log entries originating from this file.

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