/// <summary>
        /// 本接口(DescribeDevices)用于查询物联网通信设备的设备列表。
        /// </summary>
        /// <param name="req"><see cref="DescribeDevicesRequest"/></param>
        /// <returns><see cref="DescribeDevicesResponse"/></returns>
        public DescribeDevicesResponse DescribeDevicesSync(DescribeDevicesRequest req)
        {
            JsonResponseModel <DescribeDevicesResponse> rsp = null;

            try
            {
                var strResp = this.InternalRequestSync(req, "DescribeDevices");
                rsp = JsonConvert.DeserializeObject <JsonResponseModel <DescribeDevicesResponse> >(strResp);
            }
            catch (JsonSerializationException e)
            {
                throw new TencentCloudSDKException(e.Message);
            }
            return(rsp.Response);
        }
示例#2
0
 /// <summary>
 ///  查询设备列表
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public async Task <DescribeDevicesResponse> DescribeDevices(DescribeDevicesRequest request)
 {
     return(await new DescribeDevicesExecutor().Client(this).Execute <DescribeDevicesResponse, DescribeDevicesResult, DescribeDevicesRequest>(request).ConfigureAwait(false));
 }
示例#3
0
 /// <summary>
 ///  查询设备列表
 /// </summary>
 /// <param name="request">请求参数信息</param>
 /// <returns>请求结果信息</returns>
 public DescribeDevicesResponse DescribeDevices(DescribeDevicesRequest request)
 {
     return(new DescribeDevicesExecutor().Client(this).Execute <DescribeDevicesResponse, DescribeDevicesResult, DescribeDevicesRequest>(request));
 }