/// <summary> /// Saves the schedule back to the server /// </summary> /// <param name="set"></param> /// <returns></returns> public async Task SetSchedule(ScheduleSet set) { await Controller.SendData(string.Format(Controller.RootUrl + "/WebAPI/emea/api/v1/temperatureZone/{0}/schedule", ZoneId), new ScheduleSetWrite(set)); if (Schedule != null) { await UpdateSchedule(); } }
/// <summary> /// Forces repopulation of Schedule property with data from the server /// </summary> /// <returns></returns> public async Task UpdateSchedule() { this.Schedule = await GetSchedule(); }
public ScheduleSetWrite(ScheduleSet ss) { DailySchedules = ( from a in ss.DailySchedules select new DailyScheduleWrite(a)).ToList(); }
/// <summary> /// Saves the schedule back to the server /// </summary> /// <param name="set"></param> /// <returns></returns> public async Task SetSchedule(ScheduleSet set) { await Controller.SendData(string.Format(Controller.RootUrl + "/WebAPI/emea/api/v1/temperatureZone/{0}/schedule", ZoneId), new ScheduleSetWrite(set)); if (Schedule!= null) await UpdateSchedule(); }
/// <summary> /// Saves the schedule back to the server /// </summary> /// <param name="set"></param> /// <returns></returns> public async Task SetSchedule(ScheduleSet set) { await Controller.SendData(string.Format("https://rs.alarmnet.com:443/TotalConnectComfort/WebAPI/emea/api/v1/temperatureZone/{0}/schedule", ZoneId), new ScheduleSetWrite(set)); if (Schedule!= null) await UpdateSchedule(); }