AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <PlaybackCommand.h>
Public Member Functions | |
ToggleCommand (const std::string &name, bool action) | |
PlaybackCommand functions. | |
std::string | getEventName () const override |
std::string | getEventPayload () const override |
Public Member Functions inherited from alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand | |
PlaybackCommand (const std::string &name) | |
virtual | ~PlaybackCommand ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand | |
static const PlaybackCommand & | buttonToCommand (avsCommon::avs::PlaybackButton button) |
static const PlaybackCommand & | toggleToCommand (avsCommon::avs::PlaybackToggle toggle, bool action) |
Protected Attributes inherited from alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand | |
const std::string | m_name |
The distinct AVS name of a command. More... | |
This class represents a PlaybackController
1.1 interface ToggleCommandIssued
.
alexaClientSDK::capabilityAgents::playbackController::ToggleCommand::ToggleCommand | ( | const std::string & | name, |
bool | action | ||
) |
Constructor
name | Command name. |
action | The action for this command. @ true indicates the *_SELECT variant of a command, and @ false indicates the *_DESELECT variant. |
|
overridevirtual |
Get the event name associated with this command.
Implements alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand.
|
overridevirtual |
Get the Event's
payload of this command
Event's
payload Implements alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0