예제 #1
0
        public static ReadOnlyThermostatState Blank()
        {
            var result = new ReadOnlyThermostatState
            {
                CoreState      = ReadOnlyThermostatCoreState.Blank(),
                FanState       = ReadOnlyThermostatFanState.Blank(),
                SetpointStates = ReadOnlyThermostatSetpointCollection.Blank()
            };

            return(result);
        }
예제 #2
0
 internal void Update(IThermostatState data)
 {
     Core.Update(data.CoreState ?? ReadOnlyThermostatCoreState.Blank());
     Fan.Update(data.FanState ?? ReadOnlyThermostatFanState.Blank());
     Setpoints.Update(data.SetpointStates ?? ReadOnlyThermostatSetpointCollection.Blank());
 }