![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <AuthorizedSender.h>
Public Member Functions | |
~AuthorizedSender () override | |
void | updateAuthorizedPlayers (const std::unordered_set< std::string > &playerIds) |
MessageSenderInterface Functions. | |
void | sendMessage (std::shared_ptr< avsCommon::avs::MessageRequest > request) override |
Static Public Member Functions | |
static std::shared_ptr< AuthorizedSender > | create (std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender) |
If an adapter/player is not authorized, it is not allowed to send events or be mentioned in the Context. This class parses the MessageRequest
JSON and sends the message if the sender has an authorized playerId
. This also means that this class will block events that do not have a playerId
field in the payload. By default, no players are authorized.
|
override |
|
static |
Creates an instance of the AuthorizedSender
.
messageSender | Sends messages to the cloud. |
|
override |
void alexaClientSDK::acsdkExternalMediaPlayer::AuthorizedSender::updateAuthorizedPlayers | ( | const std::unordered_set< std::string > & | playerIds | ) |
Update the list of authorized players that are allowed to send messages.
playerIds | The authorized players. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0