Exemplo n.º 1
0
 public ClimateControlScheduleValue()
 {
     Switchpoints = new SwitchpointValue [NumSwitchpoints];
     for (int i = 0; i < NumSwitchpoints; i++)
     {
         Switchpoints [i] = new SwitchpointValue {
             State = new ScheduleStateValue {
                 Unused = true
             }
         };
     }
 }
Exemplo n.º 2
0
        public static ClimateControlScheduleValue Parse(byte [] bytes)
        {
            var result = new ClimateControlScheduleValue();

            result.Weekday = (Weekday)bytes [2];

            for (int i = 0; i < NumSwitchpoints; i++)
            {
                result.Switchpoints [i] = SwitchpointValue.Parse(bytes, i * 3 + 3);
            }

            return(result);
        }