AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
DoNotDisturbNamespace.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_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_IPC_NAMESPACES_DONOTDISTURBNAMESPACE_H_
17 #define ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_IPC_NAMESPACES_DONOTDISTURBNAMESPACE_H_
18 
20 
21 namespace alexaClientSDK {
22 namespace sampleApplications {
23 namespace ipcServerSampleApp {
24 namespace ipc {
25 namespace IPCNamespaces {
26 
28 static const char IPC_MSG_NAMESPACE_DO_NOT_DISTURB[] = "DoNotDisturb";
29 
31 static const int IPC_MSG_VERSION_DO_NOT_DISTURB(1);
32 
34 static const char IPC_MSG_NAME_SET_DND_SETTING_CHANGE[] = "setDoNotDisturbState";
35 
40 public:
46  explicit SetDoNotDisturbStateMessage(const bool enabled) :
47  Message(
48  IPC_MSG_NAMESPACE_DO_NOT_DISTURB,
50  IPC_MSG_NAME_SET_DND_SETTING_CHANGE) {
51  setEnabledInPayload(enabled);
52  addPayload();
53  };
54 };
55 
56 } // namespace IPCNamespaces
57 } // namespace ipc
58 } // namespace ipcServerSampleApp
59 } // namespace sampleApplications
60 } // namespace alexaClientSDK
61 #endif // ALEXA_CLIENT_SDK_LIBIPCSERVERSAMPLEAPP_INCLUDE_IPCSERVERSAMPLEAPP_IPC_NAMESPACES_DONOTDISTURBNAMESPACE_H_
Message(const std::string &nameSpace, const int version, const std::string &name)
Definition: Message.h:64
Message & setEnabledInPayload(bool enabled)
Definition: Message.h:138
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
static const char IPC_MSG_NAMESPACE_DO_NOT_DISTURB[]
The message namespace for Do Not Disturb.
Definition: DoNotDisturbNamespace.h:28
static const char IPC_MSG_NAME_SET_DND_SETTING_CHANGE[]
The message name for setDoNotDisturbState.
Definition: DoNotDisturbNamespace.h:34
static const int IPC_MSG_VERSION_DO_NOT_DISTURB(1)
The namespace version for Do Not Disturb.

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