#include <CapabilitySemantics.h>
◆ CapabilitySemantics()
alexaClientSDK::avsCommon::avs::capabilitySemantics::CapabilitySemantics::CapabilitySemantics |
( |
| ) |
|
|
default |
◆ addActionsToDirectiveMapping()
bool alexaClientSDK::avsCommon::avs::capabilitySemantics::CapabilitySemantics::addActionsToDirectiveMapping |
( |
const ActionsToDirectiveMapping & |
mapping | ) |
|
Adds an ActionsToDirective
type "actionMapping" to this semantics definition.
- Note
- A specific action ID may be used in only one 'actionMappings' object added with this method, but this method does not provide the validation.
- Parameters
-
- Returns
true
if adding the mapping was successful, else false
.
◆ addStatesToRangeMapping()
bool alexaClientSDK::avsCommon::avs::capabilitySemantics::CapabilitySemantics::addStatesToRangeMapping |
( |
const StatesToRangeMapping & |
mapping | ) |
|
Adds a StatesToRange
type "stateMapping" to this semantics definition.
- Note
- A specific state ID may be used in only one 'stateMappings' object added with either this method or
addStatesToValueMapping()
, but this method does not provide the validation.
- Parameters
-
- Returns
true
if adding the mapping was successful, else false
.
◆ addStatesToValueMapping()
bool alexaClientSDK::avsCommon::avs::capabilitySemantics::CapabilitySemantics::addStatesToValueMapping |
( |
const StatesToValueMapping & |
mapping | ) |
|
Adds a StatesToValue
type "stateMapping" to this semantics definition.
- Note
- A specific state ID may be used in only one 'stateMappings' object added with either this method or
addStatesToRangeMapping()
, but this method does not provide the validation.
- Parameters
-
- Returns
true
if adding the mapping was successful, else false
.
◆ isValid()
bool alexaClientSDK::avsCommon::avs::capabilitySemantics::CapabilitySemantics::isValid |
( |
| ) |
const |
◆ toJson()
std::string alexaClientSDK::avsCommon::avs::capabilitySemantics::CapabilitySemantics::toJson |
( |
| ) |
const |
Converts this semantics object to a JSON string.
- Note
- This follows the AVS discovery message format.
- Returns
- A JSON string representation of this
CapabilitySemantics
.
The documentation for this class was generated from the following file:
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0