AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface Class Referenceabstract

#include <MessageObserverInterface.h>

Inheritance diagram for alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface:
Inheritance graph

Public Member Functions

virtual ~MessageObserverInterface ()=default
virtual void receive (const std::string &contextId, const std::string &message)=0

Detailed Description

This class allows a client to receive messages from AVS.

Constructor & Destructor Documentation

◆ ~MessageObserverInterface()

virtual alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface::~MessageObserverInterface ( )


Member Function Documentation

◆ receive()

virtual void alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface::receive ( const std::string &  contextId,
const std::string &  message 
pure virtual

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

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.

Implemented in alexaClientSDK::diagnostics::DeviceProtocolTracer, alexaClientSDK::adsl::MessageInterpreter, and alexaClientSDK::avsCommon::utils::TestableMessageObserver.

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

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