public static DescribeImportsForSQLServerResponse Unmarshall(UnmarshallerContext context) { DescribeImportsForSQLServerResponse describeImportsForSQLServerResponse = new DescribeImportsForSQLServerResponse() { HttpResponse = context.HttpResponse, RequestId = context.StringValue("DescribeImportsForSQLServer.RequestId"), TotalRecordCounts = context.IntegerValue("DescribeImportsForSQLServer.TotalRecordCounts"), PageNumber = context.IntegerValue("DescribeImportsForSQLServer.PageNumber"), SQLItemsCounts = context.IntegerValue("DescribeImportsForSQLServer.SQLItemsCounts") }; List <DescribeImportsForSQLServerResponse.SQLServerImport> items = new List <DescribeImportsForSQLServerResponse.SQLServerImport>(); for (int i = 0; i < context.Length("DescribeImportsForSQLServer.Items.Length"); i++) { DescribeImportsForSQLServerResponse.SQLServerImport sQlServerImport = new DescribeImportsForSQLServerResponse.SQLServerImport() { ImportId = context.IntegerValue($"DescribeImportsForSQLServer.Items[{i}].ImportId"), FileName = context.StringValue($"DescribeImportsForSQLServer.Items[{i}].FileName"), DBName = context.StringValue($"DescribeImportsForSQLServer.Items[{i}].DBName"), ImportStatus = context.EnumValue <DescribeImportsForSQLServerResponse.SQLServerImport.ImportStatusEnum>($"DescribeImportsForSQLServer.Items[{i}].ImportStatus"), StartTime = context.StringValue($"DescribeImportsForSQLServer.Items[{i}].StartTime") }; items.Add(sQlServerImport); } describeImportsForSQLServerResponse.Items = items; return(describeImportsForSQLServerResponse); }
public static DescribeImportsForSQLServerResponse Unmarshall(UnmarshallerContext context) { DescribeImportsForSQLServerResponse describeImportsForSQLServerResponse = new DescribeImportsForSQLServerResponse(); describeImportsForSQLServerResponse.HttpResponse = context.HttpResponse; describeImportsForSQLServerResponse.RequestId = context.StringValue("DescribeImportsForSQLServer.RequestId"); describeImportsForSQLServerResponse.TotalRecordCounts = context.IntegerValue("DescribeImportsForSQLServer.TotalRecordCounts"); describeImportsForSQLServerResponse.PageNumber = context.IntegerValue("DescribeImportsForSQLServer.PageNumber"); describeImportsForSQLServerResponse.SQLItemsCounts = context.IntegerValue("DescribeImportsForSQLServer.SQLItemsCounts"); List <DescribeImportsForSQLServerResponse.DescribeImportsForSQLServer_SQLServerImport> describeImportsForSQLServerResponse_items = new List <DescribeImportsForSQLServerResponse.DescribeImportsForSQLServer_SQLServerImport>(); for (int i = 0; i < context.Length("DescribeImportsForSQLServer.Items.Length"); i++) { DescribeImportsForSQLServerResponse.DescribeImportsForSQLServer_SQLServerImport sQLServerImport = new DescribeImportsForSQLServerResponse.DescribeImportsForSQLServer_SQLServerImport(); sQLServerImport.ImportId = context.IntegerValue("DescribeImportsForSQLServer.Items[" + i + "].ImportId"); sQLServerImport.FileName = context.StringValue("DescribeImportsForSQLServer.Items[" + i + "].FileName"); sQLServerImport.DBName = context.StringValue("DescribeImportsForSQLServer.Items[" + i + "].DBName"); sQLServerImport.ImportStatus = context.StringValue("DescribeImportsForSQLServer.Items[" + i + "].ImportStatus"); sQLServerImport.StartTime = context.StringValue("DescribeImportsForSQLServer.Items[" + i + "].StartTime"); describeImportsForSQLServerResponse_items.Add(sQLServerImport); } describeImportsForSQLServerResponse.Items = describeImportsForSQLServerResponse_items; return(describeImportsForSQLServerResponse); }