![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <WaitableMessageRequest.h>
Public Member Functions | |
WaitableMessageRequest (const std::string &jsonContent) | |
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status | waitForCompletion () |
void | shutdown () |
MessageRequest Functions | |
void | sendCompleted (avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status sendMessageStatus) override |
Additional Inherited Members |
A specialized class to send messages that can be waited on.
alexaClientSDK::avsCommon::avs::WaitableMessageRequest::WaitableMessageRequest | ( | const std::string & | jsonContent | ) |
Constructor.
jsonContent | The JSON content of the event. |
|
overridevirtual |
This is called once the send request has completed. The status parameter indicates success or failure.
status | Whether the send request succeeded or failed. |
Reimplemented from alexaClientSDK::avsCommon::avs::MessageRequest.
void alexaClientSDK::avsCommon::avs::WaitableMessageRequest::shutdown | ( | ) |
Stops the message request processing and returns immediately.
avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status alexaClientSDK::avsCommon::avs::WaitableMessageRequest::waitForCompletion | ( | ) |
A blocking call that waits for the message request's response to arrive, up to CONNECTION_TIMEOUT
seconds.
MessageRequestObserverInterface::Status
of the response. If no response is received within the timeout, the status is MessageRequestObserverInterface::Status::TIMEDOUT. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0