|
| 1 | +/* |
| 2 | + * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + * or more contributor license agreements. See the NOTICE file |
| 4 | + * distributed with this work for additional information |
| 5 | + * regarding copyright ownership. The ASF licenses this file |
| 6 | + * to you under the Apache License, Version 2.0 (the |
| 7 | + * "License"); you may not use this file except in compliance |
| 8 | + * with the License. You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | +using System; |
| 20 | +using System.Collections.Generic; |
| 21 | + |
| 22 | +using Aliyun.Acs.Core.Transform; |
| 23 | +using Aliyun.Acs.quickbi_public.Model.V20220101; |
| 24 | + |
| 25 | +namespace Aliyun.Acs.quickbi_public.Transform.V20220101 |
| 26 | +{ |
| 27 | + public class SmartqQueryAbilityResponseUnmarshaller |
| 28 | + { |
| 29 | + public static SmartqQueryAbilityResponse Unmarshall(UnmarshallerContext _ctx) |
| 30 | + { |
| 31 | + SmartqQueryAbilityResponse smartqQueryAbilityResponse = new SmartqQueryAbilityResponse(); |
| 32 | + |
| 33 | + smartqQueryAbilityResponse.HttpResponse = _ctx.HttpResponse; |
| 34 | + smartqQueryAbilityResponse.RequestId = _ctx.StringValue("SmartqQueryAbility.RequestId"); |
| 35 | + smartqQueryAbilityResponse.Success = _ctx.BooleanValue("SmartqQueryAbility.Success"); |
| 36 | + |
| 37 | + SmartqQueryAbilityResponse.SmartqQueryAbility_Result result = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result(); |
| 38 | + result.ChartType = _ctx.StringValue("SmartqQueryAbility.Result.ChartType"); |
| 39 | + |
| 40 | + List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem> result_metaType = new List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem>(); |
| 41 | + for (int i = 0; i < _ctx.Length("SmartqQueryAbility.Result.MetaType.Length"); i++) { |
| 42 | + SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem metaTypeItem = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_MetaTypeItem(); |
| 43 | + metaTypeItem.Key = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Key"); |
| 44 | + metaTypeItem._Value = _ctx.StringValue("SmartqQueryAbility.Result.MetaType["+ i +"].Value"); |
| 45 | + |
| 46 | + result_metaType.Add(metaTypeItem); |
| 47 | + } |
| 48 | + result.MetaType = result_metaType; |
| 49 | + |
| 50 | + List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem> result_values = new List<SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem>(); |
| 51 | + for (int i = 0; i < _ctx.Length("SmartqQueryAbility.Result.Values.Length"); i++) { |
| 52 | + SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem valuesItem = new SmartqQueryAbilityResponse.SmartqQueryAbility_Result.SmartqQueryAbility_ValuesItem(); |
| 53 | + |
| 54 | + List<string> valuesItem_row = new List<string>(); |
| 55 | + for (int j = 0; j < _ctx.Length("SmartqQueryAbility.Result.Values["+ i +"].Row.Length"); j++) { |
| 56 | + valuesItem_row.Add(_ctx.StringValue("SmartqQueryAbility.Result.Values["+ i +"].Row["+ j +"]")); |
| 57 | + } |
| 58 | + valuesItem.Row = valuesItem_row; |
| 59 | + |
| 60 | + result_values.Add(valuesItem); |
| 61 | + } |
| 62 | + result.Values = result_values; |
| 63 | + smartqQueryAbilityResponse.Result = result; |
| 64 | + |
| 65 | + return smartqQueryAbilityResponse; |
| 66 | + } |
| 67 | + } |
| 68 | +} |
0 commit comments