16 #ifndef ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTRANGECONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTRANGECONTROLLERHANDLER_H_ 25 namespace sampleApplications {
41 static std::shared_ptr<PeripheralEndpointRangeControllerHandler>
create(
49 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setRangeValue(
60 std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface> observer)
override;
62 const std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface>& observer)
89 double m_currentRangeValue;
92 double m_maximumRangeValue;
95 double m_minmumRangeValue;
104 std::list<std::shared_ptr<avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface>> m_observers;
111 #endif // ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTRANGECONTROLLERHANDLER_H_ Definition: RangeControllerInterface.h:37
AlexaResponseType
Definition: AlexaResponseType.h:30
::std::string string
Definition: gtest-port.h:1097
Definition: RangeControllerInterface.h:50
avsCommon::sdkInterfaces::rangeController::RangeControllerInterface::RangeControllerConfiguration getConfiguration() override
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
Definition: Optional.h:32
std::pair< avsCommon::avs::AlexaResponseType, std::string > adjustRangeValue(double value, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
Definition: PeripheralEndpointRangeControllerHandler.h:31
static std::shared_ptr< PeripheralEndpointRangeControllerHandler > create(const std::string &endpointName, const std::string &instance)
std::pair< avsCommon::avs::AlexaResponseType, std::string > setRangeValue(double value, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface > observer) override
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::rangeController::RangeControllerInterface::RangeState > > getRangeState() override
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::rangeController::RangeControllerObserverInterface > &observer) override