C# Class HA4IoT.Sensors.Buttons.ButtonExtensions

Mostra file Open project: chkr1011/CK.HomeAutomation

Public Methods

Method Description
GetButton ( this area, Enum id ) : IButton
WithPressedLongAction ( this button, System.Action action ) : IButton
WithPressedShortlyAction ( this button, System.Action action ) : IButton

Method Details

GetButton() public static method

public static GetButton ( this area, Enum id ) : IButton
area this
id System.Enum
return IButton

WithPressedLongAction() public static method

public static WithPressedLongAction ( this button, System.Action action ) : IButton
button this
action System.Action
return IButton

WithPressedShortlyAction() public static method

public static WithPressedShortlyAction ( this button, System.Action action ) : IButton
button this
action System.Action
return IButton