C# Class CyrusBuilt.MonoPi.Components.Lights.LightBase

Base class for light component abstractions.
Inheritance: ComponentBase, ILight
Mostrar archivo Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
Off ( ) : void

Switches the light off.

On ( ) : void

Switches the light on.

Protected Methods

Method Description
LightBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Lights.LightBase class. This is the default constructor.

OnStateChanged ( LightStateChangeEventArgs e ) : void

Raises the state changed event.

Method Details

LightBase() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Lights.LightBase class. This is the default constructor.
protected LightBase ( ) : System
return System

Off() public abstract method

Switches the light off.
public abstract Off ( ) : void
return void

On() public abstract method

Switches the light on.
public abstract On ( ) : void
return void

OnStateChanged() protected method

Raises the state changed event.
protected OnStateChanged ( LightStateChangeEventArgs e ) : void
e LightStateChangeEventArgs /// The event arguments. ///
return void