|
| 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.alimt; |
| 26 | +using Aliyun.Acs.alimt.Transform; |
| 27 | +using Aliyun.Acs.alimt.Transform.V20181012; |
| 28 | + |
| 29 | +namespace Aliyun.Acs.alimt.Model.V20181012 |
| 30 | +{ |
| 31 | + public class GetTranslateImageBatchResultRequest : RpcAcsRequest<GetTranslateImageBatchResultResponse> |
| 32 | + { |
| 33 | + public GetTranslateImageBatchResultRequest() |
| 34 | + : base("alimt", "2018-10-12", "GetTranslateImageBatchResult") |
| 35 | + { |
| 36 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 37 | + { |
| 38 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.alimt.Endpoint.endpointMap, null); |
| 39 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.alimt.Endpoint.endpointRegionalType, null); |
| 40 | + } |
| 41 | + Method = MethodType.POST; |
| 42 | + } |
| 43 | + |
| 44 | + private string taskId; |
| 45 | + |
| 46 | + public string TaskId |
| 47 | + { |
| 48 | + get |
| 49 | + { |
| 50 | + return taskId; |
| 51 | + } |
| 52 | + set |
| 53 | + { |
| 54 | + taskId = value; |
| 55 | + DictionaryUtil.Add(BodyParameters, "TaskId", value); |
| 56 | + } |
| 57 | + } |
| 58 | + |
| 59 | + public override bool CheckShowJsonItemName() |
| 60 | + { |
| 61 | + return false; |
| 62 | + } |
| 63 | + |
| 64 | + public override GetTranslateImageBatchResultResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 65 | + { |
| 66 | + return GetTranslateImageBatchResultResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 67 | + } |
| 68 | + } |
| 69 | +} |
0 commit comments