//查询批量申请设备的处理结果是否完成 private static void TestQueryApplyStatus() { IClientProfile clientProfile = DefaultProfile.GetProfile("<your-region-id>", "<your-access-key-id>", "<your-access-key-secret>"); DefaultAcsClient client = new DefaultAcsClient(clientProfile); QueryApplyStatusRequest request = new QueryApplyStatusRequest(); //ApplyId来源于ApplyDeviceWithNamesResponse request.ApplyId = 11191; try { QueryApplyStatusResponse response = client.GetAcsResponse(request); Console.WriteLine(response.Success); Console.WriteLine(response.ErrorMessage); Console.WriteLine("Apply to create device is finish: " + response.Finish); } catch (ServerException e) { Console.WriteLine(e.ErrorCode); Console.WriteLine(e.ErrorMessage); } catch (ClientException e) { Console.WriteLine(e.ErrorCode); Console.WriteLine(e.ErrorMessage); } Console.ReadKey(); }
public static QueryApplyStatusResponse Unmarshall(UnmarshallerContext context) { QueryApplyStatusResponse queryApplyStatusResponse = new QueryApplyStatusResponse(); queryApplyStatusResponse.HttpResponse = context.HttpResponse; queryApplyStatusResponse.RequestId = context.StringValue("QueryApplyStatus.RequestId"); queryApplyStatusResponse.Success = context.BooleanValue("QueryApplyStatus.Success"); queryApplyStatusResponse.ErrorMessage = context.StringValue("QueryApplyStatus.ErrorMessage"); queryApplyStatusResponse.Finish = context.BooleanValue("QueryApplyStatus.Finish"); return(queryApplyStatusResponse); }