16 #ifndef ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTRANGECONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTRANGECONTROLLERHANDLER_H_ 25 namespace sampleApplications {
40 static std::shared_ptr<DefaultEndpointRangeControllerHandler>
create(
const std::string& instance);
46 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setRangeValue(
57 std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface> observer)
override;
59 const std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface>& observer)
75 double m_currentRangeValue;
78 double m_maximumRangeValue;
81 double m_minmumRangeValue;
90 std::list<std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface>> m_observers;
97 #endif // ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTRANGECONTROLLERHANDLER_H_ std::pair< avsCommon::avs::AlexaResponseType, std::string > adjustRangeValue(double value, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface > &observer) override
Definition: RangeControllerInterface.h:37
AlexaResponseType
Definition: AlexaResponseType.h:30
::std::string string
Definition: gtest-port.h:1097
Definition: RangeControllerInterface.h:50
std::pair< avsCommon::avs::AlexaResponseType, std::string > setRangeValue(double value, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
Definition: DefaultEndpointRangeControllerHandler.h:31
Definition: Optional.h:32
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface > observer) override
static std::shared_ptr< DefaultEndpointRangeControllerHandler > create(const std::string &instance)
avsCommon::sdkInterfaces::rangeController::RangeControllerInterface::RangeControllerConfiguration getConfiguration() override
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface::RangeState > > getRangeState() override