AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <TestableMessageObserver.h>
Public Member Functions | |
void | receive (const std::string &contextId, const std::string &message) override |
bool | waitForDirective (const std::string &directiveMessage, const std::chrono::seconds duration) |
A useful class that allows us to test a Directive being received.
|
overridevirtual |
A function that a client must implement to receive Messages from AVS.
contextId | The context for the message, which in this case reflects the logical HTTP/2 stream the message arrived on. |
message | The AVS message that has been received. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface.
bool alexaClientSDK::avsCommon::utils::TestableMessageObserver::waitForDirective | ( | const std::string & | directiveMessage, |
const std::chrono::seconds | duration | ||
) |
A function to wait for a specific directive to be received.
directiveMessage | The text of the directive. |
duraton | The maximum time the caller should wait for this to occur. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0