//根据设备名称列表批量获取设备详情
        public void TestBatchQueryDeviceDetail()
        {
            DefaultAcsClient acsClient            = Demo.IotClient.GetClient();
            BatchQueryDeviceDetailRequest request = new BatchQueryDeviceDetailRequest();

            request.ProductKey = "<productKey>";
            List <string> deviceNames = new List <string>();

            deviceNames.Add("device0821");
            deviceNames.Add("device0822");
            request.DeviceNames = deviceNames;

            BatchQueryDeviceDetailResponse response = acsClient.GetAcsResponse(request);

            Console.WriteLine(response.Success);
            Console.WriteLine(response.Code);
            Console.WriteLine(response.ErrorMessage);

            List <BatchQueryDeviceDetailResponse.BatchQueryDeviceDetail_DataItem> Data = response.Data;

            for (int i = 0; i < Data.Count; i += 1)
            {
                BatchQueryDeviceDetailResponse.BatchQueryDeviceDetail_DataItem itemDetail = Data[i];
                Console.WriteLine(itemDetail.DeviceName + ", " + itemDetail.ProductKey + ", " + itemDetail.IotId);
            }
        }
        public static BatchQueryDeviceDetailResponse Unmarshall(UnmarshallerContext context)
        {
            BatchQueryDeviceDetailResponse batchQueryDeviceDetailResponse = new BatchQueryDeviceDetailResponse();

            batchQueryDeviceDetailResponse.HttpResponse = context.HttpResponse;
            batchQueryDeviceDetailResponse.RequestId    = context.StringValue("BatchQueryDeviceDetail.RequestId");
            batchQueryDeviceDetailResponse.Success      = context.BooleanValue("BatchQueryDeviceDetail.Success");
            batchQueryDeviceDetailResponse.Code         = context.StringValue("BatchQueryDeviceDetail.Code");
            batchQueryDeviceDetailResponse.ErrorMessage = context.StringValue("BatchQueryDeviceDetail.ErrorMessage");

            List <BatchQueryDeviceDetailResponse.BatchQueryDeviceDetail_DataItem> batchQueryDeviceDetailResponse_data = new List <BatchQueryDeviceDetailResponse.BatchQueryDeviceDetail_DataItem>();

            for (int i = 0; i < context.Length("BatchQueryDeviceDetail.Data.Length"); i++)
            {
                BatchQueryDeviceDetailResponse.BatchQueryDeviceDetail_DataItem dataItem = new BatchQueryDeviceDetailResponse.BatchQueryDeviceDetail_DataItem();
                dataItem.ProductKey      = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].ProductKey");
                dataItem.ProductName     = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].ProductName");
                dataItem.DeviceName      = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].DeviceName");
                dataItem.Nickname        = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].Nickname");
                dataItem.DeviceSecret    = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].DeviceSecret");
                dataItem.IotId           = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].IotId");
                dataItem.UtcCreate       = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].UtcCreate");
                dataItem.GmtCreate       = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].GmtCreate");
                dataItem.UtcActive       = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].UtcActive");
                dataItem.GmtActive       = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].GmtActive");
                dataItem.Status          = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].Status");
                dataItem.FirmwareVersion = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].FirmwareVersion");
                dataItem.NodeType        = context.IntegerValue("BatchQueryDeviceDetail.Data[" + i + "].NodeType");
                dataItem.Region          = context.StringValue("BatchQueryDeviceDetail.Data[" + i + "].Region");

                batchQueryDeviceDetailResponse_data.Add(dataItem);
            }
            batchQueryDeviceDetailResponse.Data = batchQueryDeviceDetailResponse_data;

            return(batchQueryDeviceDetailResponse);
        }