/// <summary> /// Boosts a device by turning it on and off after a certain duration, if applicable. /// </summary> /// <param name="deviceUuid">The device UUID.</param> /// <param name="serviceUuid">The service UUID.</param> /// <param name="entity">The request entity.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>The boost timer.</returns> public Task <TimerEntity> BoostDeviceServiceAsync(Guid deviceUuid, Guid serviceUuid, BoostEntity entity, CancellationToken cancellationToken = default(CancellationToken)) { return(_client.RequestJsonSerializedAsync <BoostEntity, TimerEntity>(HttpMethod.Post, $"device/{deviceUuid}/service/{serviceUuid}/boost", entity, cancellationToken)); }
/// <summary> /// Boosts a group by turning it on and off after a certain duration, if applicable. /// </summary> /// <param name="groupUuid">The group UUID.</param> /// <param name="entity">The request entity.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>The boost timer.</returns> public Task <TimerEntity> BoostGroupAsync(Guid groupUuid, BoostEntity entity, CancellationToken cancellationToken = default(CancellationToken)) { return(_client.RequestJsonSerializedAsync <BoostEntity, TimerEntity>(HttpMethod.Post, $"group/{groupUuid}/boost", entity, cancellationToken)); }