/// <summary> /// 删除设备 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public RemoveDeviceResponse RemoveDevice(RemoveDeviceRequest request) { return(new RemoveDeviceExecutor().Client(this).Execute <RemoveDeviceResponse, RemoveDeviceResult, RemoveDeviceRequest>(request)); }
/// <summary> /// 删除设备 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <RemoveDeviceResponse> RemoveDevice(RemoveDeviceRequest request) { return(await new RemoveDeviceExecutor().Client(this).Execute <RemoveDeviceResponse, RemoveDeviceResult, RemoveDeviceRequest>(request).ConfigureAwait(false)); }
/// <summary> /// Removes the device. /// </summary> /// <param name="deviceId">The device identifier.</param> public async Task RemoveDeviceAsync(byte deviceId) { var request = new RemoveDeviceRequest{ Id = deviceId }; await this.restClient.DeleteAsync(request); }