AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::capabilityAgents::playbackController::ButtonCommand_v1_0 Class Reference

#include <PlaybackCommand.h>

Inheritance diagram for alexaClientSDK::capabilityAgents::playbackController::ButtonCommand_v1_0:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::capabilityAgents::playbackController::ButtonCommand_v1_0:
Collaboration graph
[legend]

Public Member Functions

 ButtonCommand_v1_0 (const std::string &name)
 
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 PlaybackCommandbuttonToCommand (avsCommon::avs::PlaybackButton button)
 
static const PlaybackCommandtoggleToCommand (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...
 

Detailed Description

This class represents the PlaybackController 1.0 interface commands.

Constructor & Destructor Documentation

◆ ButtonCommand_v1_0()

alexaClientSDK::capabilityAgents::playbackController::ButtonCommand_v1_0::ButtonCommand_v1_0 ( const std::string &  name)

Constructor

Parameters
nameEvent name.

Member Function Documentation

◆ getEventName()

std::string alexaClientSDK::capabilityAgents::playbackController::ButtonCommand_v1_0::getEventName ( ) const
overridevirtual

Get the event name associated with this command.

Returns
Event name.

Implements alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand.

◆ getEventPayload()

std::string alexaClientSDK::capabilityAgents::playbackController::ButtonCommand_v1_0::getEventPayload ( ) const
overridevirtual

Get the Event's payload of this command

Returns
Event's payload

Implements alexaClientSDK::capabilityAgents::playbackController::PlaybackCommand.


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

AlexaClientSDK 1.26.0 - Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0