AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::acl::test::TestableConsumer Class Reference

#include <TestableConsumer.h>

Inheritance diagram for alexaClientSDK::acl::test::TestableConsumer:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acl::test::TestableConsumer:
Collaboration graph
[legend]

Public Member Functions

void setMessageObserver (std::shared_ptr< avsCommon::sdkInterfaces::MessageObserverInterface > observer)
 
void consumeMessage (const std::string &contextId, const std::string &message) override
 
- Public Member Functions inherited from alexaClientSDK::acl::MessageConsumerInterface
virtual ~MessageConsumerInterface ()=default
 

Detailed Description

Simple implementation of the ACL MessageConsumerInterface, which we can use to satisfy other ACL constructors.

Member Function Documentation

◆ consumeMessage()

void alexaClientSDK::acl::test::TestableConsumer::consumeMessage ( const std::string &  contextId,
const std::string &  message 
)
inlineoverridevirtual

Called when a message has been received from AVS.

Parameters
contextIdThe context id for the current message.
messageThe AVS message in string representation.

Implements alexaClientSDK::acl::MessageConsumerInterface.

◆ setMessageObserver()

void alexaClientSDK::acl::test::TestableConsumer::setMessageObserver ( std::shared_ptr< avsCommon::sdkInterfaces::MessageObserverInterface observer)
inline

Constructor.

Parameters
observerAn observer which will receive any Messages this object receives through consumeMessage.

The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0