Characteristic Locus
Inheritance System.Object > FilterableChangeObservableBase<C, T> > AdafruitMPRLSSensor > Bme280 > Bmp085 > Bmp180 > DhtBase > GroveTh02 > Hih6130 > Htu21d > Mpl115a2 > Mpl3115a2 > Sht31D > Si70xx > Vl53l0x > AnalogWaterLevel > AnalogJoystick > Hx711 > Capacitive > Fc28 > Adxl335 > Adxl337 > Adxl345 > Adxl362 > Adxl377 > Mpu6050 > AnalogTemperature > Lm75 > Tmp102
Implements System.IObservable<C>
Inherited Members System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace Meadow.Foundation.Sensors
Assembly Meadow.Foundation.dll

Syntax

public abstract class FilterableChangeObservableBase<C, T> : IObservable<C> where C : IChangeResult<T>

Type Parameters

Name Description
C

The IChangeResult notification data.

T

The datatype that contains the notification data. I.e. AtmosphericConditions or decimal.

Constructors

FilterableChangeObservableBase()

Declaration
public FilterableChangeObservableBase()

Properties

_observers

Declaration
protected List<IObserver<C>> _observers { get; set; }

Property Value

Type Description
System.Collections.Generic.List<System.IObserver<C>>

Methods

NotifyObservers(C)

Declaration
protected void NotifyObservers(C changeResult)

Parameters

Type Name Description
C changeResult

Subscribe(IObserver<C>)

Subscribes an IObserver to get notified when a change occurs.

Declaration
public IDisposable Subscribe(IObserver<C> observer)

Parameters

Type Name Description
System.IObserver<C> observer

The IObserver that will receive the change notifications.

Returns

Type Description
System.IDisposable