C# Class HA4IoT.Sensors.Buttons.Button

Inheritance: SensorBase, IButton
Exibir arquivo Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
Button ( ComponentId id, IButtonEndpoint endpoint, ITimerService timerService, ISettingsService settingsService ) : System
GetPressedLongTrigger ( ) : ITrigger
GetPressedShortlyTrigger ( ) : ITrigger
GetSupportedStates ( ) : IList
HandleApiCall ( IApiContext apiContext ) : void

Protected Methods

Method Description
OnPressedLong ( ) : void
OnPressedShortlyShort ( ) : void

Private Methods

Method Description
CheckForTimeout ( object sender, TimerTickEventArgs e ) : void
HandleInputStateChanged ( ComponentState state ) : void
InvokeTriggers ( ) : void

Method Details

Button() public method

public Button ( ComponentId id, IButtonEndpoint endpoint, ITimerService timerService, ISettingsService settingsService ) : System
id ComponentId
endpoint IButtonEndpoint
timerService ITimerService
settingsService ISettingsService
return System

GetPressedLongTrigger() public method

public GetPressedLongTrigger ( ) : ITrigger
return ITrigger

GetPressedShortlyTrigger() public method

public GetPressedShortlyTrigger ( ) : ITrigger
return ITrigger

GetSupportedStates() public method

public GetSupportedStates ( ) : IList
return IList

HandleApiCall() public method

public HandleApiCall ( IApiContext apiContext ) : void
apiContext IApiContext
return void

OnPressedLong() protected method

protected OnPressedLong ( ) : void
return void

OnPressedShortlyShort() protected method

protected OnPressedShortlyShort ( ) : void
return void