C# Class CyrusBuilt.MonoPi.Components.Power.PowerBase

Base class for power control device abstraction components.
Inheritance: ComponentBase, IPower
Afficher le fichier Open project: cyrusbuilt/MonoPi

Méthodes publiques

Méthode Description
Off ( ) : void

Switches the device off.

On ( ) : void

Switches the device on.

Méthodes protégées

Méthode Description
OnStateChanged ( PowerStateChangeEventArgs e ) : void

Raises the StateChanged event.

PowerBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Power.PowerBase class. This is the default constructor.

Method Details

Off() public méthode

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

On() public méthode

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

OnStateChanged() protected méthode

Raises the StateChanged event.
protected OnStateChanged ( PowerStateChangeEventArgs e ) : void
e PowerStateChangeEventArgs /// The event arguments. ///
Résultat void

PowerBase() protected méthode

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