public Device() { _binarySwitch = new ToggleSwitchModel(this); _multilevelSwitch = new DimmerSwitchModel(this); _colorSwitch = new ColorSwitchModel(this); _thermostat = new ThermostatModel(this); _binarySensor = new BinarySensorModel(this); _powerSensor = new MultilevelSensorModel <IPower>(this); _temperatureSensor = new MultilevelSensorModel <ITemperature>(this); _humiditySensor = new MultilevelSensorModel <IHumidity>(this); _illuminanceSensor = new MultilevelSensorModel <IIlluminance>(this); }
public Device() { _binarySwitch = new ToggleSwitchModel(this); _multilevelSwitch = new DimmerSwitchModel(this); _colorSwitch = new ColorSwitchModel(this); _thermostat = new ThermostatModel(this); _binarySensor = new BinarySensorModel(this); _powerSensor = new MultilevelSensorModel<IPower>(this); _temperatureSensor = new MultilevelSensorModel<ITemperature>(this); _humiditySensor = new MultilevelSensorModel<IHumidity>(this); _illuminanceSensor = new MultilevelSensorModel<IIlluminance>(this); }