C# Class CyrusBuilt.MonoPi.Components.Sensors.SensorStateChangedEventArgs

Sensor state changed event arguments class.
Inheritance: System.EventArgs
Show file Open project: cyrusbuilt/MonoPi Class Usage Examples

Public Methods

Method Description
SensorStateChangedEventArgs ( ISensor sensor, SensorState oldState, SensorState newState ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Sensors.SensorStateChangedEventArgs class with the sensor that changed state, as well as the old and new states.

Method Details

SensorStateChangedEventArgs() public method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Sensors.SensorStateChangedEventArgs class with the sensor that changed state, as well as the old and new states.
public SensorStateChangedEventArgs ( ISensor sensor, SensorState oldState, SensorState newState ) : System
sensor ISensor /// The sensor that changed state. ///
oldState SensorState /// The state of the sensor prior to the change. ///
newState SensorState /// The current state of the sensor. ///
return System