|
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_OBSERVABLEMESSAGEREQUEST_H_
17 #define ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_OBSERVABLEMESSAGEREQUEST_H_
21 #include <condition_variable>
27 namespace integration {
35 const std::string& jsonContent,
36 std::shared_ptr<avsCommon::avs::attachment::AttachmentReader> attachmentReader =
nullptr);
52 const std::chrono::seconds = std::chrono::seconds(10));
62 mutable std::mutex m_mutex;
64 std::condition_variable m_wakeTrigger;
66 std::atomic<bool> m_sendCompleted;
68 std::atomic<bool> m_exceptionReceived;
74 #endif // ALEXA_CLIENT_SDK_INTEGRATION_INCLUDE_INTEGRATION_OBSERVABLEMESSAGEREQUEST_H_
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status getSendMessageStatus() const
Definition: ObservableMessageRequest.cpp:62
bool wasExceptionReceived()
Function indicating if exceptionReceived has been called.
Definition: ObservableMessageRequest.cpp:85
void exceptionReceived(const std::string &exceptionMessage) override
Definition: ObservableMessageRequest.cpp:76
void sendCompleted(avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status status) override
Definition: ObservableMessageRequest.cpp:53
Definition: ObservableMessageRequest.h:29
Definition: MessageRequest.h:40
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
ObservableMessageRequest(const std::string &jsonContent, std::shared_ptr< avsCommon::avs::attachment::AttachmentReader > attachmentReader=nullptr)
Definition: ObservableMessageRequest.cpp:41
bool hasSendCompleted()
Function indicating if sendCompleted has been called.
Definition: ObservableMessageRequest.cpp:81
bool waitFor(const avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status, const std::chrono::seconds=std::chrono::seconds(10))
Definition: ObservableMessageRequest.cpp:68
Status
Definition: MessageRequestObserverInterface.h:33
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0