QueryAppInfoResponseUnmarshaller.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 Aliyun.Acs.Core.Transform;
  20. using Aliyun.Acs.Push.Model.V20160801;
  21. using System;
  22. using System.Collections.Generic;
  23. namespace Aliyun.Acs.Push.Transform.V20160801
  24. {
  25. public class QueryAppInfoResponseUnmarshaller
  26. {
  27. public static QueryAppInfoResponse Unmarshall(UnmarshallerContext context)
  28. {
  29. QueryAppInfoResponse queryAppInfoResponse = new QueryAppInfoResponse();
  30. queryAppInfoResponse.HttpResponse = context.HttpResponse;
  31. queryAppInfoResponse.RequestId = context.StringValue("QueryAppInfo.RequestId");
  32. QueryAppInfoResponse.AppInfo_ appInfo = new QueryAppInfoResponse.AppInfo_();
  33. appInfo.AppKey = context.LongValue("QueryAppInfo.AppInfo.AppKey");
  34. appInfo.AppId = context.StringValue("QueryAppInfo.AppInfo.AppId");
  35. appInfo.PushAppId = context.StringValue("QueryAppInfo.AppInfo.PushAppId");
  36. appInfo.AppName = context.StringValue("QueryAppInfo.AppInfo.AppName");
  37. appInfo.Description = context.StringValue("QueryAppInfo.AppInfo.Description");
  38. appInfo.IndustryId = context.IntegerValue("QueryAppInfo.AppInfo.IndustryId");
  39. appInfo.AndroidStatus = context.IntegerValue("QueryAppInfo.AppInfo.AndroidStatus");
  40. appInfo.IOSStatus = context.IntegerValue("QueryAppInfo.AppInfo.IOSStatus");
  41. appInfo.DeviceCount = context.LongValue("QueryAppInfo.AppInfo.DeviceCount");
  42. appInfo.AppStatus = context.IntegerValue("QueryAppInfo.AppInfo.AppStatus");
  43. appInfo.Status = context.IntegerValue("QueryAppInfo.AppInfo.Status");
  44. QueryAppInfoResponse.AppInfo_.Extension_ extension = new QueryAppInfoResponse.AppInfo_.Extension_();
  45. extension.XmAppSecretKey = context.StringValue("QueryAppInfo.AppInfo.Extension.XmAppSecretKey");
  46. extension.HwAppKey = context.StringValue("QueryAppInfo.AppInfo.Extension.HwAppKey");
  47. extension.HwAppSecretKey = context.StringValue("QueryAppInfo.AppInfo.Extension.HwAppSecretKey");
  48. appInfo.Extension = extension;
  49. queryAppInfoResponse.AppInfo = appInfo;
  50. return queryAppInfoResponse;
  51. }
  52. }
  53. }