WdkRexSoftwareListCheckRequest.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using System;
  2. using System.Collections.Generic;
  3. using Top.Api.Util;
  4. namespace Top.Api.Request
  5. {
  6. /// <summary>
  7. /// TOP API: wdk.rex.software.list.check
  8. /// </summary>
  9. public class WdkRexSoftwareListCheckRequest : BaseTopRequest<Top.Api.Response.WdkRexSoftwareListCheckResponse>
  10. {
  11. /// <summary>
  12. /// 自定义参数
  13. /// </summary>
  14. public string Attributes { get; set; }
  15. /// <summary>
  16. /// 设备ID
  17. /// </summary>
  18. public string DeviceId { get; set; }
  19. /// <summary>
  20. /// 设备类型
  21. /// </summary>
  22. public string DeviceType { get; set; }
  23. /// <summary>
  24. /// 旧版本信息
  25. /// </summary>
  26. public string OldVersions { get; set; }
  27. /// <summary>
  28. /// 组织机构信息
  29. /// </summary>
  30. public string OrgInfos { get; set; }
  31. /// <summary>
  32. /// 租户ID
  33. /// </summary>
  34. public Nullable<long> TenantId { get; set; }
  35. #region ITopRequest Members
  36. public override string GetApiName()
  37. {
  38. return "wdk.rex.software.list.check";
  39. }
  40. public override IDictionary<string, string> GetParameters()
  41. {
  42. TopDictionary parameters = new TopDictionary();
  43. parameters.Add("attributes", this.Attributes);
  44. parameters.Add("device_id", this.DeviceId);
  45. parameters.Add("device_type", this.DeviceType);
  46. parameters.Add("old_versions", this.OldVersions);
  47. parameters.Add("org_infos", this.OrgInfos);
  48. parameters.Add("tenant_id", this.TenantId);
  49. if (this.otherParams != null)
  50. {
  51. parameters.AddAll(this.otherParams);
  52. }
  53. return parameters;
  54. }
  55. public override void Validate()
  56. {
  57. RequestValidator.ValidateRequired("device_id", this.DeviceId);
  58. RequestValidator.ValidateRequired("tenant_id", this.TenantId);
  59. }
  60. #endregion
  61. }
  62. }