WdkRexDeviceInfoLatestRequest.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. using System;
  2. using System.Xml.Serialization;
  3. using System.Collections.Generic;
  4. using Top.Api.Util;
  5. namespace Top.Api.Request
  6. {
  7. /// <summary>
  8. /// TOP API: wdk.rex.device.info.latest
  9. /// </summary>
  10. public class WdkRexDeviceInfoLatestRequest : BaseTopRequest<Top.Api.Response.WdkRexDeviceInfoLatestResponse>
  11. {
  12. /// <summary>
  13. /// 请求封装
  14. /// </summary>
  15. public string Req { get; set; }
  16. public AiotManagerDeviceLatestRequestDomain Req_ { set { this.Req = TopUtils.ObjectToJson(value); } }
  17. #region ITopRequest Members
  18. public override string GetApiName()
  19. {
  20. return "wdk.rex.device.info.latest";
  21. }
  22. public override IDictionary<string, string> GetParameters()
  23. {
  24. TopDictionary parameters = new TopDictionary();
  25. parameters.Add("req", this.Req);
  26. if (this.otherParams != null)
  27. {
  28. parameters.AddAll(this.otherParams);
  29. }
  30. return parameters;
  31. }
  32. public override void Validate()
  33. {
  34. }
  35. /// <summary>
  36. /// AiotManagerDeviceLatestRequestDomain Data Structure.
  37. /// </summary>
  38. [Serializable]
  39. public class AiotManagerDeviceLatestRequestDomain : TopObject
  40. {
  41. /// <summary>
  42. /// 应用ID
  43. /// </summary>
  44. [XmlElement("app_id")]
  45. public Nullable<long> AppId { get; set; }
  46. /// <summary>
  47. /// 包签名
  48. /// </summary>
  49. [XmlElement("app_sign_md5")]
  50. public string AppSignMd5 { get; set; }
  51. /// <summary>
  52. /// 设备类型
  53. /// </summary>
  54. [XmlElement("device_type")]
  55. public string DeviceType { get; set; }
  56. /// <summary>
  57. /// 商家code
  58. /// </summary>
  59. [XmlElement("merchant_code")]
  60. public string MerchantCode { get; set; }
  61. /// <summary>
  62. /// 是否需要AK
  63. /// </summary>
  64. [XmlElement("need_ak")]
  65. public Nullable<bool> NeedAk { get; set; }
  66. /// <summary>
  67. /// 包名
  68. /// </summary>
  69. [XmlElement("package_name")]
  70. public string PackageName { get; set; }
  71. /// <summary>
  72. /// 阿里云pk
  73. /// </summary>
  74. [XmlElement("product_key")]
  75. public string ProductKey { get; set; }
  76. /// <summary>
  77. /// 唯一标识
  78. /// </summary>
  79. [XmlElement("utdid")]
  80. public string Utdid { get; set; }
  81. /// <summary>
  82. /// uuid
  83. /// </summary>
  84. [XmlElement("uuid")]
  85. public string Uuid { get; set; }
  86. }
  87. #endregion
  88. }
  89. }