public ClimateControlScheduleValue() { Switchpoints = new SwitchpointValue [NumSwitchpoints]; for (int i = 0; i < NumSwitchpoints; i++) { Switchpoints [i] = new SwitchpointValue { State = new ScheduleStateValue { Unused = true } }; } }
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); }