Пример #1
0
 /// <summary>
 /// Sets the cool program for the thermostat.
 /// </summary>
 /// <param name="program">Program instance with cool settings per day.</param>
 /// <param name="ct">Cancellation token instance.</param>
 /// <returns></returns>
 public async Task SetProgramCool(ProgramModel program, CancellationToken ct)
 {
     var json     = Newtonsoft.Json.JsonConvert.SerializeObject(program.GetChangedProperties());
     var content  = new StringContent(json, Encoding.UTF8);
     var response = await this.PostAsync <ThermostatResponse>("tstat/program/cool", ct, content);
 }