AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
ModeControllerAttributes.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 
16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_MODECONTROLLER_MODECONTROLLERATTRIBUTES_H_
17 #define ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_MODECONTROLLER_MODECONTROLLERATTRIBUTES_H_
18 
19 #include <unordered_map>
20 
24 
25 namespace alexaClientSDK {
26 namespace avsCommon {
27 namespace sdkInterfaces {
28 namespace modeController {
29 
32 
46 
56  const std::unordered_map<std::string, ModeResources>& modes,
57  bool ordered);
58 
68  const avsCommon::avs::CapabilityResources& capabilityResources,
69  const std::unordered_map<std::string, ModeResources>& modes,
70  bool ordered,
72 
75 
77  const std::unordered_map<std::string, ModeResources> modes;
78 
80  const bool ordered;
81 
84 };
85 
88  avsCommon::avs::CapabilityResources(),
89  std::unordered_map<std::string, ModeResources>(),
90  false) {
91 }
92 
95  const std::unordered_map<std::string, ModeResources>& modes,
96  bool ordered) :
97  capabilityResources{capabilityResources},
98  modes{modes},
101 }
102 
105  const std::unordered_map<std::string, ModeResources>& modes,
106  bool ordered,
108  capabilityResources{capabilityResources},
109  modes{modes},
110  ordered{ordered},
112 }
113 
114 } // namespace modeController
115 } // namespace sdkInterfaces
116 } // namespace avsCommon
117 } // namespace alexaClientSDK
118 
119 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_SDKINTERFACES_INCLUDE_AVSCOMMON_SDKINTERFACES_MODECONTROLLER_MODECONTROLLERATTRIBUTES_H_
::std::string string
Definition: gtest-port.h:1097
Definition: CapabilityConfiguration.h:190
avsCommon::utils::Optional< avsCommon::avs::capabilitySemantics::CapabilitySemantics > semantics
A semantics definition as an Optional CapabilitySemantics.
Definition: ModeControllerAttributes.h:83
const bool ordered
If true indicates that the modes in modes are ordered.
Definition: ModeControllerAttributes.h:80
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: CapabilityResources.h:34
const std::unordered_map< std::string, ModeResources > modes
A map of controller supported modes string and their mode resource using ModeResources.
Definition: ModeControllerAttributes.h:77
const avsCommon::avs::CapabilityResources capabilityResources
A capability resource CapabilityResources.
Definition: ModeControllerAttributes.h:74

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