internal virtual DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request) { var marshaller = DescribeDeviceRequestMarshaller.Instance; var unmarshaller = DescribeDeviceResponseUnmarshaller.Instance; return(Invoke <DescribeDeviceRequest, DescribeDeviceResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeDevice operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDevice operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">REST API Reference for DescribeDevice Operation</seealso> public virtual Task <DescribeDeviceResponse> DescribeDeviceAsync(DescribeDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = DescribeDeviceRequestMarshaller.Instance; var unmarshaller = DescribeDeviceResponseUnmarshaller.Instance; return(InvokeAsync <DescribeDeviceRequest, DescribeDeviceResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeDevice operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDevice operation on AmazonIoT1ClickDevicesServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDevice /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">REST API Reference for DescribeDevice Operation</seealso> public virtual IAsyncResult BeginDescribeDevice(DescribeDeviceRequest request, AsyncCallback callback, object state) { var marshaller = DescribeDeviceRequestMarshaller.Instance; var unmarshaller = DescribeDeviceResponseUnmarshaller.Instance; return(BeginInvoke <DescribeDeviceRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeDevice operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDevice operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">REST API Reference for DescribeDevice Operation</seealso> public virtual Task <DescribeDeviceResponse> DescribeDeviceAsync(DescribeDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance; return(InvokeAsync <DescribeDeviceResponse>(request, options, cancellationToken)); }
internal virtual DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance; return(Invoke <DescribeDeviceResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeDevice operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeDevice operation on AmazonIoT1ClickDevicesServiceClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeDevice /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice">REST API Reference for DescribeDevice Operation</seealso> public virtual IAsyncResult BeginDescribeDevice(DescribeDeviceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }
/// <summary> /// 用于查看某个设备的详细信息 /// </summary> /// <param name="req"><see cref="DescribeDeviceRequest"/></param> /// <returns><see cref="DescribeDeviceResponse"/></returns> public DescribeDeviceResponse DescribeDeviceSync(DescribeDeviceRequest req) { JsonResponseModel <DescribeDeviceResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeDevice"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeDeviceResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }
/// <summary> /// 查询设备详情 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public async Task <DescribeDeviceResponse> DescribeDevice(DescribeDeviceRequest request) { return(await new DescribeDeviceExecutor().Client(this).Execute <DescribeDeviceResponse, DescribeDeviceResult, DescribeDeviceRequest>(request).ConfigureAwait(false)); }
/// <summary> /// 查询设备详情 /// </summary> /// <param name="request">请求参数信息</param> /// <returns>请求结果信息</returns> public DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request) { return(new DescribeDeviceExecutor().Client(this).Execute <DescribeDeviceResponse, DescribeDeviceResult, DescribeDeviceRequest>(request)); }