Exemplo n.º 1
0
 /// <summary>
 ///  删除设备
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public RemoveDeviceResponse RemoveDevice(RemoveDeviceRequest request)
 {
     return(new RemoveDeviceExecutor().Client(this).Execute <RemoveDeviceResponse, RemoveDeviceResult, RemoveDeviceRequest>(request));
 }
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
 /// <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);
 }