OpenAccountUpdateRequest.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Xml.Serialization;
  3. using Top.Api.Domain;
  4. using System.Collections.Generic;
  5. using Top.Api.Util;
  6. namespace Top.Api.Request
  7. {
  8. /// <summary>
  9. /// TOP API: taobao.open.account.update
  10. /// </summary>
  11. public class OpenAccountUpdateRequest : BaseTopRequest<Top.Api.Response.OpenAccountUpdateResponse>
  12. {
  13. /// <summary>
  14. /// Open Account
  15. /// </summary>
  16. public string ParamList { get; set; }
  17. public List<OpenAccount> ParamList_ { set { this.ParamList = TopUtils.ObjectToJson(value); } }
  18. #region ITopRequest Members
  19. public override string GetApiName()
  20. {
  21. return "taobao.open.account.update";
  22. }
  23. public override IDictionary<string, string> GetParameters()
  24. {
  25. TopDictionary parameters = new TopDictionary();
  26. parameters.Add("param_list", this.ParamList);
  27. if (this.otherParams != null)
  28. {
  29. parameters.AddAll(this.otherParams);
  30. }
  31. return parameters;
  32. }
  33. public override void Validate()
  34. {
  35. RequestValidator.ValidateObjectMaxListSize("param_list", this.ParamList, 20);
  36. }
  37. #endregion
  38. }
  39. }