public static ReadOnlyThermostatState Blank() { var result = new ReadOnlyThermostatState { CoreState = ReadOnlyThermostatCoreState.Blank(), FanState = ReadOnlyThermostatFanState.Blank(), SetpointStates = ReadOnlyThermostatSetpointCollection.Blank() }; return(result); }
internal void Update(IThermostatState data) { Core.Update(data.CoreState ?? ReadOnlyThermostatCoreState.Blank()); Fan.Update(data.FanState ?? ReadOnlyThermostatFanState.Blank()); Setpoints.Update(data.SetpointStates ?? ReadOnlyThermostatSetpointCollection.Blank()); }