16 #ifndef ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTTOGGLECONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTTOGGLECONTROLLERHANDLER_H_ 25 namespace sampleApplications {
43 static std::shared_ptr<PeripheralEndpointToggleControllerHandler>
create(
49 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setToggleState(
56 bool addObserver(std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface>
59 const std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface>& observer)
86 bool m_currentToggleState;
92 std::list<std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface>>
100 #endif // ACSDK_SAMPLE_PERIPHERALENDPOINT_PERIPHERALENDPOINTTOGGLECONTROLLERHANDLER_H_ std::pair< avsCommon::avs::AlexaResponseType, std::string > setToggleState(bool state, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
AlexaResponseType
Definition: AlexaResponseType.h:30
::std::string string
Definition: gtest-port.h:1097
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface > &observer) override
static std::shared_ptr< PeripheralEndpointToggleControllerHandler > create(const std::string &endpointName, const std::string &instance)
Definition: PeripheralEndpointToggleControllerHandler.h:32
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
Definition: Optional.h:32
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface::ToggleState > > getToggleState() override
Definition: ToggleControllerInterface.h:38
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface > observer) override