|
| 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.moguan_sdk.Transform; |
| 26 | +using Aliyun.Acs.moguan_sdk.Transform.V20210415; |
| 27 | + |
| 28 | +namespace Aliyun.Acs.moguan_sdk.Model.V20210415 |
| 29 | +{ |
| 30 | + public class RegisterDeviceRequest : RpcAcsRequest<RegisterDeviceResponse> |
| 31 | + { |
| 32 | + public RegisterDeviceRequest() |
| 33 | + : base("moguan-sdk", "2021-04-15", "RegisterDevice", "visionai", "openAPI") |
| 34 | + { |
| 35 | + if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null) |
| 36 | + { |
| 37 | + this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Aliyun.Acs.moguan_sdk.Endpoint.endpointMap, null); |
| 38 | + this.GetType().GetProperty("ProductEndpointType").SetValue(this, Aliyun.Acs.moguan_sdk.Endpoint.endpointRegionalType, null); |
| 39 | + } |
| 40 | + Method = MethodType.POST; |
| 41 | + } |
| 42 | + |
| 43 | + private string userDeviceId; |
| 44 | + |
| 45 | + private string extend; |
| 46 | + |
| 47 | + private string sdkCode; |
| 48 | + |
| 49 | + private string appKey; |
| 50 | + |
| 51 | + private string deviceId; |
| 52 | + |
| 53 | + public string UserDeviceId |
| 54 | + { |
| 55 | + get |
| 56 | + { |
| 57 | + return userDeviceId; |
| 58 | + } |
| 59 | + set |
| 60 | + { |
| 61 | + userDeviceId = value; |
| 62 | + DictionaryUtil.Add(BodyParameters, "UserDeviceId", value); |
| 63 | + } |
| 64 | + } |
| 65 | + |
| 66 | + public string Extend |
| 67 | + { |
| 68 | + get |
| 69 | + { |
| 70 | + return extend; |
| 71 | + } |
| 72 | + set |
| 73 | + { |
| 74 | + extend = value; |
| 75 | + DictionaryUtil.Add(BodyParameters, "Extend", value); |
| 76 | + } |
| 77 | + } |
| 78 | + |
| 79 | + public string SdkCode |
| 80 | + { |
| 81 | + get |
| 82 | + { |
| 83 | + return sdkCode; |
| 84 | + } |
| 85 | + set |
| 86 | + { |
| 87 | + sdkCode = value; |
| 88 | + DictionaryUtil.Add(BodyParameters, "SdkCode", value); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + public string AppKey |
| 93 | + { |
| 94 | + get |
| 95 | + { |
| 96 | + return appKey; |
| 97 | + } |
| 98 | + set |
| 99 | + { |
| 100 | + appKey = value; |
| 101 | + DictionaryUtil.Add(BodyParameters, "AppKey", value); |
| 102 | + } |
| 103 | + } |
| 104 | + |
| 105 | + public string DeviceId |
| 106 | + { |
| 107 | + get |
| 108 | + { |
| 109 | + return deviceId; |
| 110 | + } |
| 111 | + set |
| 112 | + { |
| 113 | + deviceId = value; |
| 114 | + DictionaryUtil.Add(BodyParameters, "DeviceId", value); |
| 115 | + } |
| 116 | + } |
| 117 | + |
| 118 | + public override bool CheckShowJsonItemName() |
| 119 | + { |
| 120 | + return false; |
| 121 | + } |
| 122 | + |
| 123 | + public override RegisterDeviceResponse GetResponse(UnmarshallerContext unmarshallerContext) |
| 124 | + { |
| 125 | + return RegisterDeviceResponseUnmarshaller.Unmarshall(unmarshallerContext); |
| 126 | + } |
| 127 | + } |
| 128 | +} |
0 commit comments