AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <SettingEventSender.h>
Public Member Functions | |
~SettingEventSender () | |
SettingEventSenderInterface Functions | |
std::shared_future< bool > | sendChangedEvent (const std::string &value) override |
std::shared_future< bool > | sendReportEvent (const std::string &value) override |
std::shared_future< bool > | sendStateReportEvent (const std::string &payload) override |
void | cancel () override |
Public Member Functions inherited from alexaClientSDK::settings::SettingEventSenderInterface | |
virtual | ~SettingEventSenderInterface ()=default |
Static Public Member Functions | |
static std::unique_ptr< SettingEventSender > | create (const SettingEventMetadata &metadata, std::shared_ptr< avsCommon::sdkInterfaces::MessageSenderInterface > messageSender, const std::vector< int > &retryTable=getDefaultRetryTable()) |
An implementation of the SettingEventSenderInterface
.
alexaClientSDK::settings::SettingEventSender::~SettingEventSender | ( | ) |
Destructor. Cancels any pending requests.
|
overridevirtual |
Cancels an ongoing event transmission to AVS.
Implements alexaClientSDK::settings::SettingEventSenderInterface.
|
static |
Creates an instance of the .
metadata | Contains the information needed to construct AVS events. |
messageSender | The delivery service for the AVS events. |
SettingEventSender
instance.
|
overridevirtual |
Sends a setting changed event to AVS. This event follows the format:
The setting specific fields should be specified in a SettingEventMetadata
passed as an argument on creation this object.
value | The value of the setting. It should be a valid JSON string value. |
Implements alexaClientSDK::settings::SettingEventSenderInterface.
|
overridevirtual |
Sends a report setting event to AVS.
The setting report event follows the format:
The setting specific fields should be specified in a SettingEventMetadata
passed as an argument on creation this object.
value | The value of the setting. It should be a valid JSON string value. |
Implements alexaClientSDK::settings::SettingEventSenderInterface.
|
overridevirtual |
Sends a state report event to AVS.
The setting state report event follows the format:
The setting specific fields should be specified in a SettingEventMetadata
passed as an argument on creation this object.
payload | The report payload. It should be a valid JSON element. |
Implements alexaClientSDK::settings::SettingEventSenderInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0