AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DeviceSetupMessageRequest.h>
Public Member Functions | |
DeviceSetupMessageRequest (const std::string &jsonContent, std::promise< bool > messageCompletePromise) | |
MessageRequest functions. | |
| |
void | sendCompleted (avsCommon::sdkInterfaces::MessageRequestObserverInterface::Status status) override |
Additional Inherited Members |
This class extends MessageRequest
to fulfill a promise upon sending completion. Currently MessageRequestObserverInterface
callbacks do not return an identifier. This makes it difficult to associate callbacks when multiple requests are sent. The future allows multiple messages to be sent, and their returns to be differentiated.
alexaClientSDK::acsdkDeviceSetup::DeviceSetupMessageRequest::DeviceSetupMessageRequest | ( | const std::string & | jsonContent, |
std::promise< bool > | messageCompletePromise | ||
) |
@copyDoc avsCommon::avs::MessageRequest()
Construct a MessageRequest
that will fulfill the promise upon completion.
jsonContent | The JSON content to be sent to AVS. |
messageCompletePromise | The promise to set with the results. |
|
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.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0