C# Класс CyrusBuilt.MonoPi.Components.Lights.LightBase

Base class for light component abstractions.
Наследование: ComponentBase, ILight
Показать файл Открыть проект

Открытые методы

Метод Описание
Off ( ) : void

Switches the light off.

On ( ) : void

Switches the light on.

Защищенные методы

Метод Описание
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.

Описание методов

LightBase() защищенный Метод

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Lights.LightBase class. This is the default constructor.
protected LightBase ( ) : System
Результат System

Off() публичный абстрактный Метод

Switches the light off.
public abstract Off ( ) : void
Результат void

On() публичный абстрактный Метод

Switches the light on.
public abstract On ( ) : void
Результат void

OnStateChanged() защищенный Метод

Raises the state changed event.
protected OnStateChanged ( LightStateChangeEventArgs e ) : void
e LightStateChangeEventArgs /// The event arguments. ///
Результат void