AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
AmdCommunicationInterface.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 ACSDKASSETSINTERFACES_COMMUNICATION_AMDCOMMUNICATIONINTERFACE_H_
17 #define ACSDKASSETSINTERFACES_COMMUNICATION_AMDCOMMUNICATIONINTERFACE_H_
18 
21 
22 namespace alexaClientSDK {
23 namespace acsdkAssets {
24 namespace commonInterfaces {
25 
30  , public virtual acsdkCommunicationInterfaces::CommunicationInvokeHandlerInterface<bool, std::string> {
31 public:
35  ~AmdCommunicationInterface() override = default;
36 
37  /*
38  * Overriding CommunicationPropertyInterface for int and string
39  */
46 
53 
54  /*
55  * Overriding CommunicationInvokeHandlerInterface for string
56  */
60 
64 };
65 
66 } // namespace commonInterfaces
67 } // namespace acsdkAssets
68 } // namespace alexaClientSDK
69 
70 #endif // ACSDKASSETSINTERFACES_COMMUNICATION_AMDCOMMUNICATIONINTERFACE_H_
virtual bool unsubscribeToPropertyChangeEvent(const std::string &propertyName, const std::shared_ptr< CommunicationPropertyChangeSubscriber< int >> &subscriber)=0
virtual bool readProperty(const std::string &propertyName, int &value)=0
virtual alexaClientSDK::avsCommon::utils::error::SuccessResult< std::string > invoke(const std::string &name, ArgTypes...)=0
virtual bool registerFunction(const std::string &name, std::shared_ptr< FunctionInvokerInterface< std::string, ArgTypes... >> functionImplementation)=0
virtual std::shared_ptr< CommunicationProperty< int > > registerProperty(const std::string &propertyName, int initValue, const std::shared_ptr< CommunicationPropertyValidatorInterface< int >> &writeValidator=nullptr)=0
virtual bool subscribeToPropertyChangeEvent(const std::string &propertyName, const std::weak_ptr< CommunicationPropertyChangeSubscriber< int >> &subscriber)=0
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
virtual bool deregister(const std::string &name, const std::shared_ptr< FunctionInvokerInterface< std::string, ArgTypes... >> &functionImplementation)=0
virtual bool writeProperty(const std::string &propertyName, int newValue)=0
virtual void deregisterProperty(const std::string &propertyName, const std::shared_ptr< CommunicationProperty< int >> &property)=0

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