![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <MessageInterpreter.h>


Public Member Functions | |
| MessageInterpreter (std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > exceptionEncounteredSender, std::shared_ptr< avsCommon::sdkInterfaces::DirectiveSequencerInterface > directiveSequencer, std::shared_ptr< avsCommon::avs::attachment::AttachmentManagerInterface > attachmentManager, std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > metricRecorder=nullptr) | |
| void | receive (const std::string &contextId, const std::string &message) override |
Class that converts acl::Message to AVSDirective, and passes those directives to a DirectiveSequencerInterface.
| alexaClientSDK::adsl::MessageInterpreter::MessageInterpreter | ( | std::shared_ptr< avsCommon::sdkInterfaces::ExceptionEncounteredSenderInterface > | exceptionEncounteredSender, |
| std::shared_ptr< avsCommon::sdkInterfaces::DirectiveSequencerInterface > | directiveSequencer, | ||
| std::shared_ptr< avsCommon::avs::attachment::AttachmentManagerInterface > | attachmentManager, | ||
| std::shared_ptr< avsCommon::utils::metrics::MetricRecorderInterface > | metricRecorder = nullptr |
||
| ) |
Constructor.
| exceptionEncounteredSender | The exceptions encountered messages sender, which will allow us to send exception encountered back to AVS. |
| directiveSequencerInterface | The DirectiveSequencerInterface implementation, which will receive AVSDirectives. |
| attachmentManager | The AttachmentManager which created AVSDirectives will use to acquire Attachments. |
| metricRecorder | The metric recorder. |
|
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.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0