WdkAiotFirmwareVersionCheckRequest.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.aiot.firmware.version.check
  8. /// </summary>
  9. public class WdkAiotFirmwareVersionCheckRequest : BaseTopRequest<Top.Api.Response.WdkAiotFirmwareVersionCheckResponse>
  10. {
  11. /// <summary>
  12. /// 自定义参数
  13. /// </summary>
  14. public string AttributesJson { get; set; }
  15. /// <summary>
  16. /// 厂商
  17. /// </summary>
  18. public string Brand { get; set; }
  19. /// <summary>
  20. /// 设备唯一标识
  21. /// </summary>
  22. public string DeviceId { get; set; }
  23. /// <summary>
  24. /// 硬件类型
  25. /// </summary>
  26. public string Hardtype { get; set; }
  27. /// <summary>
  28. /// 当前版本号
  29. /// </summary>
  30. public string OldVersionCode { get; set; }
  31. #region ITopRequest Members
  32. public override string GetApiName()
  33. {
  34. return "wdk.aiot.firmware.version.check";
  35. }
  36. public override IDictionary<string, string> GetParameters()
  37. {
  38. TopDictionary parameters = new TopDictionary();
  39. parameters.Add("attributes_json", this.AttributesJson);
  40. parameters.Add("brand", this.Brand);
  41. parameters.Add("device_id", this.DeviceId);
  42. parameters.Add("hardtype", this.Hardtype);
  43. parameters.Add("old_version_code", this.OldVersionCode);
  44. if (this.otherParams != null)
  45. {
  46. parameters.AddAll(this.otherParams);
  47. }
  48. return parameters;
  49. }
  50. public override void Validate()
  51. {
  52. }
  53. #endregion
  54. }
  55. }