TmallMcDeviceCircleCheckRequest.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.circle.check
  8. /// </summary>
  9. public class TmallMcDeviceCircleCheckRequest : BaseTopRequest<Top.Api.Response.TmallMcDeviceCircleCheckResponse>
  10. {
  11. /// <summary>
  12. /// 渠道编码
  13. /// </summary>
  14. public string ChannelId { get; set; }
  15. /// <summary>
  16. /// 外部设备编码
  17. /// </summary>
  18. public string OuterCode { get; set; }
  19. #region ITopRequest Members
  20. public override string GetApiName()
  21. {
  22. return "tmall.mc.device.circle.check";
  23. }
  24. public override IDictionary<string, string> GetParameters()
  25. {
  26. TopDictionary parameters = new TopDictionary();
  27. parameters.Add("channel_id", this.ChannelId);
  28. parameters.Add("outer_code", this.OuterCode);
  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_id", this.ChannelId);
  38. RequestValidator.ValidateRequired("outer_code", this.OuterCode);
  39. }
  40. #endregion
  41. }
  42. }