C# Class CyrusBuilt.MonoPi.Devices.Access.OpenerBase

Base class for opener device abstractions.
Inheritance: DeviceBase, IOpener
ファイルを表示 Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
Close ( ) : void

Closes the opener.

Open ( ) : void

Opens the opener.

Protected Methods

Method Description
OnLockChanged ( OpenerLockChangeEventArgs e ) : void

Raises the lock changed event.

OnStateChanged ( OpenerStateChangeEventArgs e ) : void

Raises the state changed event.

OpenerBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Access.OpenerBase class. This is the default constructor.

Method Details

Close() public abstract method

Closes the opener.
/// The opener cannot be closed because it is locked. ///
public abstract Close ( ) : void
return void

OnLockChanged() protected method

Raises the lock changed event.
protected OnLockChanged ( OpenerLockChangeEventArgs e ) : void
e OpenerLockChangeEventArgs /// The event arguments. ///
return void

OnStateChanged() protected method

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

Open() public abstract method

Opens the opener.
/// The opener cannot be opened because it is locked. ///
public abstract Open ( ) : void
return void

OpenerBase() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Access.OpenerBase class. This is the default constructor.
protected OpenerBase ( ) : System
return System