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

Base class for power control device abstraction components.
Inheritance: ComponentBase, IPower
ファイルを表示 Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
Off ( ) : void

Switches the device off.

On ( ) : void

Switches the device on.

Protected Methods

Method 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 method

Switches the device off.
public Off ( ) : void
return void

On() public method

Switches the device on.
public On ( ) : void
return void

OnStateChanged() protected method

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

PowerBase() protected method

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