AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Minimal implementation of a message observer for integration tests. More...
#include <ClientMessageHandler.h>
Public Member Functions | |
ClientMessageHandler (std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > attachmentManager) | |
Constructor. More... | |
void | receive (const std::string &contextId, const std::string &message) override |
bool | waitForNext (const std::chrono::seconds duration=std::chrono::seconds(2)) |
Minimal implementation of a message observer for integration tests.
alexaClientSDK::integration::ClientMessageHandler::ClientMessageHandler | ( | std::shared_ptr< avsCommon::avs::attachment::AttachmentManager > | attachmentManager | ) |
Constructor.
|
overridevirtual |
Implementation of the interface's receive function.
For the purposes of these integration tests, this function simply logs and counts messages.
Implements alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface.
bool alexaClientSDK::integration::ClientMessageHandler::waitForNext | ( | const std::chrono::seconds | duration = std::chrono::seconds(2) | ) |
Wait for a message to be received.
This function waits for a specified number of seconds for a message to arrive.
duration | Number of seconds to wait before giving up. |
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0