TmallMcDeviceStatusDeleteRequest.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using Top.Api.Util;
  4. namespace Top.Api.Request
  5. {
  6. /// <summary>
  7. /// TOP API: tmall.mc.device.status.delete
  8. /// </summary>
  9. public class TmallMcDeviceStatusDeleteRequest : BaseTopRequest<Top.Api.Response.TmallMcDeviceStatusDeleteResponse>
  10. {
  11. /// <summary>
  12. /// 设备所属渠道
  13. /// </summary>
  14. public string Channel { get; set; }
  15. /// <summary>
  16. /// 平台设备编码
  17. /// </summary>
  18. public string DeviceCode { get; set; }
  19. #region ITopRequest Members
  20. public override string GetApiName()
  21. {
  22. return "tmall.mc.device.status.delete";
  23. }
  24. public override IDictionary<string, string> GetParameters()
  25. {
  26. TopDictionary parameters = new TopDictionary();
  27. parameters.Add("channel", this.Channel);
  28. parameters.Add("device_code", this.DeviceCode);
  29. if (this.otherParams != null)
  30. {
  31. parameters.AddAll(this.otherParams);
  32. }
  33. return parameters;
  34. }
  35. public override void Validate()
  36. {
  37. RequestValidator.ValidateRequired("channel", this.Channel);
  38. RequestValidator.ValidateRequired("device_code", this.DeviceCode);
  39. }
  40. #endregion
  41. }
  42. }