public async Task<bool> SetLamp(int ledNumber, int r, int g, int b) { var ledDetails = new HolidayLampColorRGB {value = new[] {r, g, b}.ClampValues()}; return await Put(String.Format(holidayGetLedValueEndpoint, ledNumber), JsonConvert.SerializeObject(ledDetails)); }
// base public async Task<bool> SetLamp(int r, int g, int b) { var lampColor = new HolidayLampColorRGB { value = new[] { r, g, b }.ClampValues() }; return await Put(holidaySetLampColorEndpoint, JsonConvert.SerializeObject(lampColor)); }