AlexaClientSDK  1.25.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
CapabilityResources.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_CAPABILITYRESOURCES_H_
16 #define ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_CAPABILITYRESOURCES_H_
17 
18 #include <vector>
19 #include <string>
20 #include <tuple>
21 
25 
26 namespace alexaClientSDK {
27 namespace avsCommon {
28 namespace avs {
29 
35 public:
40 
51 
66  const std::string& text,
68 
74  bool isValid() const;
75 
83  std::string toJson() const;
84 
85 private:
89  struct FriendlyName {
91  std::string value;
92 
95 
105  bool operator==(const FriendlyName& rhs) const;
108  };
109 
111  bool m_isValid;
112 
114  std::vector<FriendlyName> m_items;
115 };
116 
117 } // namespace avs
118 } // namespace avsCommon
119 } // namespace alexaClientSDK
120 
121 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_AVS_INCLUDE_AVSCOMMON_AVS_CAPABILITYRESOURCES_H_
std::string AlexaAssetId
This represents the Alexa asset identifier.
Definition: AlexaAssetId.h:27
bool operator==(const BlockingPolicy &lhs, const BlockingPolicy &rhs)
Definition: BlockingPolicy.cpp:72
std::string toJson() const
Definition: CapabilityResources.cpp:103
bool addFriendlyNameWithAssetId(const resources::AlexaAssetId &assetId)
Definition: CapabilityResources.cpp:46
CapabilityResources()
Definition: CapabilityResources.cpp:39
std::string Locale
Definition: LocaleAssetsManagerInterface.h:46
bool addFriendlyNameWithText(const std::string &text, const sdkInterfaces::LocaleAssetsManagerInterface::Locale &locale)
Definition: CapabilityResources.cpp:68
bool isValid() const
Definition: CapabilityResources.cpp:99
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: CapabilityResources.h:34

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