16 #ifndef ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTTOGGLECONTROLLERHANDLER_H_ 17 #define ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTTOGGLECONTROLLERHANDLER_H_ 25 namespace sampleApplications {
41 static std::shared_ptr<DefaultEndpointToggleControllerHandler>
create(
const std::string& instance);
45 std::pair<avsCommon::avs::AlexaResponseType, std::string>
setToggleState(
52 bool addObserver(std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface>
55 const std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface>& observer)
71 bool m_currentToggleState;
77 std::list<std::shared_ptr<avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface>>
85 #endif // ACSDK_SAMPLE_ENDPOINT_DEFAULTENDPOINT_DEFAULTENDPOINTTOGGLECONTROLLERHANDLER_H_ bool addObserver(std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface > observer) override
static std::shared_ptr< DefaultEndpointToggleControllerHandler > create(const std::string &instance)
AlexaResponseType
Definition: AlexaResponseType.h:30
Definition: DefaultEndpointToggleControllerHandler.h:32
::std::string string
Definition: gtest-port.h:1097
AlexaStateChangeCauseType
Definition: AlexaStateChangeCauseType.h:28
std::pair< avsCommon::avs::AlexaResponseType, avsCommon::utils::Optional< avsCommon::sdkInterfaces::toggleController::ToggleControllerInterface::ToggleState > > getToggleState() override
Definition: Optional.h:32
std::pair< avsCommon::avs::AlexaResponseType, std::string > setToggleState(bool state, avsCommon::sdkInterfaces::AlexaStateChangeCauseType cause) override
void removeObserver(const std::shared_ptr< avsCommon::sdkInterfaces::toggleController::ToggleControllerObserverInterface > &observer) override
Definition: ToggleControllerInterface.h:38
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36