AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
SettingStatus.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_SETTINGS_INCLUDE_SETTINGS_SETTINGSTATUS_H_
17 #define ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETTINGSTATUS_H_
18 
19 namespace alexaClientSDK {
20 namespace settings {
21 
25 enum class SettingStatus {
28 
31 
34 
37 };
38 
46  switch (status) {
48  return "LOCAL_CHANGE_IN_PROGRESS";
50  return "AVS_CHANGE_IN_PROGRESS";
52  return "SYNCHRONIZED";
54  return "NOT_AVAILABLE";
55  }
56  return "UNKNOWN";
57 }
58 
65 inline SettingStatus stringToSettingStatus(const std::string& statusString) {
66  if ("LOCAL_CHANGE_IN_PROGRESS" == statusString) {
68  } else if ("SYNCHRONIZED" == statusString) {
70  } else if ("AVS_CHANGE_IN_PROGRESS" == statusString) {
72  }
74 }
75 
76 } // namespace settings
77 } // namespace alexaClientSDK
78 
79 #endif // ALEXA_CLIENT_SDK_SETTINGS_INCLUDE_SETTINGS_SETTINGSTATUS_H_
The setting has either not been set and not been persisted in a storage or the setting is in an unkno...
The setting that was changed locally is being applied.
::std::string string
Definition: gtest-port.h:1097
The setting that was changed via cloud is being applied.
SettingStatus
Definition: SettingStatus.h:25
SettingStatus stringToSettingStatus(const std::string &statusString)
Definition: SettingStatus.h:65
std::string settingStatusToString(SettingStatus status)
Definition: SettingStatus.h:45
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
The setting has been set locally and synchronized with AVS.

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