AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <DefaultEndpointModeControllerHandler.h>
Static Public Member Functions | |
static std::shared_ptr< DefaultEndpointModeControllerHandler > | create (const std::string &instance) |
Static Public Attributes | |
static const std::string | MODE_CONTROLLER_MODE_FAN_ONLY = "Fan Only" |
The 'Fan Only' mode of the controller. More... | |
static const std::string | MODE_CONTROLLER_MODE_FAN_ONLY_FRIENDLY_NAME = "Fan Only" |
The friendly name of 'Fan Only' mode. More... | |
static const std::string | MODE_CONTROLLER_MODE_HEAT = "Heat" |
The 'HEAT' mode of the controller. More... | |
static const std::string | MODE_CONTROLLER_MODE_HEAT_FRIENDLY_NAME = "Heat" |
The friendly name of 'HEAT' mode. More... | |
static const std::string | MODE_CONTROLLER_MODE_COOL = "Cool" |
The 'Cool' mode of the controller. More... | |
static const std::string | MODE_CONTROLLER_MODE_COOL_FRIENDLY_NAME = "Cool" |
The friendly name of 'Cool' mode. More... | |
Additional Inherited Members | |
Public Types inherited from alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface | |
using | ModeState = avsCommon::sdkInterfaces::modeController::ModeControllerObserverInterface::ModeState |
Alias to improve readability. More... | |
using | ModeControllerConfiguration = std::vector< std::string > |
An implementation of a ModeControllerInterface
.
|
override |
|
overridevirtual |
Adjust the mode of an instance.
modeDelta | The delta by which the controller mode should be changed (only applicable if the mode controller is ordered). |
cause | The appropriate AlexaStateChangeCauseType for this change. |
AlexaResponseType
and string. For the successful operation, the controller should return a pair of AlexaResponseType::SUCCESS
with an empty string, otherwise it returns pair with the appropriate reason from AlexaResponseType
and a description of the error. Implements alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface.
|
static |
Create a DefaultEndpointModeControllerHandler object.
instance | The instance name of the capability. |
DefaultEndpointModeControllerHandler
object if it succeeds; otherwise, nullptr
.
|
overridevirtual |
Gets the controller configuration as defined ModeControllerConfiguration
ModeControllerConfiguration
Implements alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface.
|
overridevirtual |
Gets the current mode of the instance.
AlexaResponseType::SUCCESS
and ModeState
otherwise returns a pair with the appropriate reason from AlexaResponseType
and an empty ModeState
. Implements alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface.
|
override |
|
overridevirtual |
Set the mode of the instance.
mode | The desired mode of the instance. |
cause | The cause type for this action represented using AlexaStateChangeCauseType . |
AlexaResponseType
and string. For the successful operation, the controller should return a pair with AlexaResponseType::SUCCESS
with an empty string, otherwise returns a pair with the appropriate reason from AlexaResponseType
and a description of the error. Implements alexaClientSDK::avsCommon::sdkInterfaces::modeController::ModeControllerInterface.
|
static |
The 'Cool' mode of the controller.
|
static |
The friendly name of 'Cool' mode.
|
static |
The 'Fan Only' mode of the controller.
|
static |
The friendly name of 'Fan Only' mode.
|
static |
The 'HEAT' mode of the controller.
|
static |
The friendly name of 'HEAT' mode.
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0