OpenAccountIndexFindRequest.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using Top.Api.Util;
  4. namespace Top.Api.Request
  5. {
  6. /// <summary>
  7. /// TOP API: taobao.open.account.index.find
  8. /// </summary>
  9. public class OpenAccountIndexFindRequest : BaseTopRequest<Top.Api.Response.OpenAccountIndexFindResponse>
  10. {
  11. /// <summary>
  12. /// int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID = 5;
  13. /// </summary>
  14. public Nullable<long> IndexType { get; set; }
  15. /// <summary>
  16. /// 具体值,当索引类型是 OPEN_ID 是,格式为 oauthPlatform|openId,即使用竖线分隔的组合值
  17. /// </summary>
  18. public string IndexValue { get; set; }
  19. #region ITopRequest Members
  20. public override string GetApiName()
  21. {
  22. return "taobao.open.account.index.find";
  23. }
  24. public override IDictionary<string, string> GetParameters()
  25. {
  26. TopDictionary parameters = new TopDictionary();
  27. parameters.Add("index_type", this.IndexType);
  28. parameters.Add("index_value", this.IndexValue);
  29. if (this.otherParams != null)
  30. {
  31. parameters.AddAll(this.otherParams);
  32. }
  33. return parameters;
  34. }
  35. public override void Validate()
  36. {
  37. }
  38. #endregion
  39. }
  40. }