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

#include <MessageInterpreter.h>

Inheritance diagram for alexaClientSDK::adsl::MessageInterpreter:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::adsl::MessageInterpreter:
Collaboration graph
[legend]

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
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface
virtual ~MessageObserverInterface ()=default
 

Detailed Description

Class that converts acl::Message to AVSDirective, and passes those directives to a DirectiveSequencerInterface.

Constructor & Destructor Documentation

◆ MessageInterpreter()

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.

Parameters
exceptionEncounteredSenderThe exceptions encountered messages sender, which will allow us to send exception encountered back to AVS.
directiveSequencerInterfaceThe DirectiveSequencerInterface implementation, which will receive AVSDirectives.
attachmentManagerThe AttachmentManager which created AVSDirectives will use to acquire Attachments.
metricRecorderThe metric recorder.

Member Function Documentation

◆ receive()

void alexaClientSDK::adsl::MessageInterpreter::receive ( const std::string &  contextId,
const std::string &  message 
)
overridevirtual

A function that a client must implement to receive Messages from AVS.

Parameters
contextIdThe context for the message, which in this case reflects the logical HTTP/2 stream the message arrived on.
messageThe AVS message that has been received.

Implements alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface.


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