|
| 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.Collections.Generic; |
| 20 | + |
| 21 | +using Aliyun.Acs.Core; |
| 22 | +using Aliyun.Acs.Core.Http; |
| 23 | +using Aliyun.Acs.Core.Transform; |
| 24 | +using Aliyun.Acs.Core.Utils; |
| 25 | +using Aliyun.Acs.Iot.Transform; |
| 26 | +using Aliyun.Acs.Iot.Transform.V20180120; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.Iot.Model.V20180120 |
| 29 | +{ |
| 30 | + public class ListAnalyticsDataRequest : RpcAcsRequest<ListAnalyticsDataResponse> |
| 31 | + { |
| 32 | + public ListAnalyticsDataRequest() |
| 33 | + : base("Iot", "2018-01-20", "ListAnalyticsData", "iot", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.Iot.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.Iot.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private int? pageNum; |
| 44 | + |
| 45 | + private string iotInstanceId; |
| 46 | + |
| 47 | + private int? pageSize; |
| 48 | + |
| 49 | + private string isoId; |
| 50 | + |
| 51 | + private string apiPath; |
| 52 | + |
| 53 | + private List<Condition> conditions = new List<Condition>(){ }; |
| 54 | + |
| 55 | + public int? PageNum |
| 56 | + { |
| 57 | + get |
| 58 | + { |
| 59 | + return pageNum; |
| 60 | + } |
| 61 | + set |
| 62 | + { |
| 63 | + pageNum = value; |
| 64 | + DictionaryUtil.Add(QueryParameters, "PageNum", value.ToString()); |
| 65 | + } |
| 66 | + } |
| 67 | + |
| 68 | + public string IotInstanceId |
| 69 | + { |
| 70 | + get |
| 71 | + { |
| 72 | + return iotInstanceId; |
| 73 | + } |
| 74 | + set |
| 75 | + { |
| 76 | + iotInstanceId = value; |
| 77 | + DictionaryUtil.Add(QueryParameters, "IotInstanceId", value); |
| 78 | + } |
| 79 | + } |
| 80 | + |
| 81 | + public int? PageSize |
| 82 | + { |
| 83 | + get |
| 84 | + { |
| 85 | + return pageSize; |
| 86 | + } |
| 87 | + set |
| 88 | + { |
| 89 | + pageSize = value; |
| 90 | + DictionaryUtil.Add(QueryParameters, "PageSize", value.ToString()); |
| 91 | + } |
| 92 | + } |
| 93 | + |
| 94 | + public string IsoId |
| 95 | + { |
| 96 | + get |
| 97 | + { |
| 98 | + return isoId; |
| 99 | + } |
| 100 | + set |
| 101 | + { |
| 102 | + isoId = value; |
| 103 | + DictionaryUtil.Add(QueryParameters, "IsoId", value); |
| 104 | + } |
| 105 | + } |
| 106 | + |
| 107 | + public string ApiPath |
| 108 | + { |
| 109 | + get |
| 110 | + { |
| 111 | + return apiPath; |
| 112 | + } |
| 113 | + set |
| 114 | + { |
| 115 | + apiPath = value; |
| 116 | + DictionaryUtil.Add(QueryParameters, "ApiPath", value); |
| 117 | + } |
| 118 | + } |
| 119 | + |
| 120 | + public List<Condition> Conditions |
| 121 | + { |
| 122 | + get |
| 123 | + { |
| 124 | + return conditions; |
| 125 | + } |
| 126 | + |
| 127 | + set |
| 128 | + { |
| 129 | + conditions = value; |
| 130 | + for (int i = 0; i < conditions.Count; i++) |
| 131 | + { |
| 132 | + DictionaryUtil.Add(QueryParameters,"Condition." + (i + 1) + ".FieldName", conditions[i].FieldName); |
| 133 | + DictionaryUtil.Add(QueryParameters,"Condition." + (i + 1) + ".Operate", conditions[i].Operate); |
| 134 | + DictionaryUtil.Add(QueryParameters,"Condition." + (i + 1) + ".BetweenStart", conditions[i].BetweenStart); |
| 135 | + DictionaryUtil.Add(QueryParameters,"Condition." + (i + 1) + ".BetweenEnd", conditions[i].BetweenEnd); |
| 136 | + DictionaryUtil.Add(QueryParameters,"Condition." + (i + 1) + ".Value", conditions[i].Value); |
| 137 | + } |
| 138 | + } |
| 139 | + } |
| 140 | + |
| 141 | + public class Condition |
| 142 | + { |
| 143 | + |
| 144 | + private string fieldName; |
| 145 | + |
| 146 | + private string operate; |
| 147 | + |
| 148 | + private string betweenStart; |
| 149 | + |
| 150 | + private string betweenEnd; |
| 151 | + |
| 152 | + private string value_; |
| 153 | + |
| 154 | + public string FieldName |
| 155 | + { |
| 156 | + get |
| 157 | + { |
| 158 | + return fieldName; |
| 159 | + } |
| 160 | + set |
| 161 | + { |
| 162 | + fieldName = value; |
| 163 | + } |
| 164 | + } |
| 165 | + |
| 166 | + public string Operate |
| 167 | + { |
| 168 | + get |
| 169 | + { |
| 170 | + return operate; |
| 171 | + } |
| 172 | + set |
| 173 | + { |
| 174 | + operate = value; |
| 175 | + } |
| 176 | + } |
| 177 | + |
| 178 | + public string BetweenStart |
| 179 | + { |
| 180 | + get |
| 181 | + { |
| 182 | + return betweenStart; |
| 183 | + } |
| 184 | + set |
| 185 | + { |
| 186 | + betweenStart = value; |
| 187 | + } |
| 188 | + } |
| 189 | + |
| 190 | + public string BetweenEnd |
| 191 | + { |
| 192 | + get |
| 193 | + { |
| 194 | + return betweenEnd; |
| 195 | + } |
| 196 | + set |
| 197 | + { |
| 198 | + betweenEnd = value; |
| 199 | + } |
| 200 | + } |
| 201 | + |
| 202 | + public string Value |
| 203 | + { |
| 204 | + get |
| 205 | + { |
| 206 | + return value_; |
| 207 | + } |
| 208 | + set |
| 209 | + { |
| 210 | + value_ = value; |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | + |
| 215 | + public override bool CheckShowJsonItemName() |
| 216 | + { |
| 217 | + return false; |
| 218 | + } |
| 219 | + |
| 220 | + public override ListAnalyticsDataResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 221 | + { |
| 222 | + return ListAnalyticsDataResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 223 | + } |
| 224 | + } |
| 225 | +} |
0 commit comments