Exemple #1
0
        /// <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();
            }
        }
Exemple #2
0
 /// <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();
 }
Exemple #4
0
 /// <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();
 }
Exemple #5
0
 /// <summary>
 /// Forces repopulation of Schedule property with data from the server
 /// </summary>
 /// <returns></returns>
 public async Task UpdateSchedule()
 {
     this.Schedule = await GetSchedule();
 }
Exemple #6
0
 /// <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();
 }
Exemple #7
0
 public ScheduleSetWrite(ScheduleSet ss)
 {
     DailySchedules = (
         from a in ss.DailySchedules
         select new DailyScheduleWrite(a)).ToList();
 }