StoreFollowurlGetRequest.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.store.followurl.get
  8. /// </summary>
  9. public class StoreFollowurlGetRequest : BaseTopRequest<Top.Api.Response.StoreFollowurlGetResponse>
  10. {
  11. /// <summary>
  12. /// 关注完成后的回调地址,需要是EWS地址。如果不设置,会跳转到店铺首页
  13. /// </summary>
  14. public string CallbackUrl { get; set; }
  15. /// <summary>
  16. /// 商家ID
  17. /// </summary>
  18. public Nullable<long> UserId { get; set; }
  19. /// <summary>
  20. /// 商家nick
  21. /// </summary>
  22. public string UserNick { get; set; }
  23. #region ITopRequest Members
  24. public override string GetApiName()
  25. {
  26. return "taobao.store.followurl.get";
  27. }
  28. public override IDictionary<string, string> GetParameters()
  29. {
  30. TopDictionary parameters = new TopDictionary();
  31. parameters.Add("callback_url", this.CallbackUrl);
  32. parameters.Add("user_id", this.UserId);
  33. parameters.Add("user_nick", this.UserNick);
  34. if (this.otherParams != null)
  35. {
  36. parameters.AddAll(this.otherParams);
  37. }
  38. return parameters;
  39. }
  40. public override void Validate()
  41. {
  42. }
  43. #endregion
  44. }
  45. }