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

Base class for light component abstractions.
Inheritance: ComponentBase, ILight
Afficher le fichier Open project: cyrusbuilt/MonoPi

Méthodes publiques

Méthode Description
Off ( ) : void

Switches the light off.

On ( ) : void

Switches the light on.

Méthodes protégées

Méthode 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 méthode

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

Off() public abstract méthode

Switches the light off.
public abstract Off ( ) : void
Résultat void

On() public abstract méthode

Switches the light on.
public abstract On ( ) : void
Résultat void

OnStateChanged() protected méthode

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