![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <CapabilityResources.h>
Public Member Functions | |
CapabilityResources () | |
bool | addFriendlyNameWithAssetId (const resources::AlexaAssetId &assetId) |
bool | addFriendlyNameWithText (const std::string &text, const sdkInterfaces::LocaleAssetsManagerInterface::Locale &locale) |
bool | isValid () const |
std::string | toJson () const |
This class represents the resources used by a Capability, communicated as friendly names to AVS.
alexaClientSDK::avsCommon::avs::CapabilityResources::CapabilityResources | ( | ) |
The constructor.
bool alexaClientSDK::avsCommon::avs::CapabilityResources::addFriendlyNameWithAssetId | ( | const resources::AlexaAssetId & | assetId | ) |
Function to add friendly name with asset id.
assetId | The asset id of the friendly name using AlexaAssetId . |
true
if successful in adding the asset id, otherwise false. bool alexaClientSDK::avsCommon::avs::CapabilityResources::addFriendlyNameWithText | ( | const std::string & | text, |
const sdkInterfaces::LocaleAssetsManagerInterface::Locale & | locale | ||
) |
Function to add friendly name with text value and its locale.
text | The text of the friendly name. |
locale | The locale of the friendly name Locale . |
true
if successful in adding the text and locale, otherwise false. bool alexaClientSDK::avsCommon::avs::CapabilityResources::isValid | ( | ) | const |
Function to check if the CapabilityResources
is valid.
true
if valid, otherwise false
. std::string alexaClientSDK::avsCommon::avs::CapabilityResources::toJson | ( | ) | const |
Helper function to convert a FriendlyName
to a json string.
FriendlyName
. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0