TopAppinfoGetRequest.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.top.appinfo.get
  8. /// </summary>
  9. public class TopAppinfoGetRequest : BaseTopRequest<Top.Api.Response.TopAppinfoGetResponse>
  10. {
  11. /// <summary>
  12. /// 查询应用信息的appkey
  13. /// </summary>
  14. public string Appkey { get; set; }
  15. #region ITopRequest Members
  16. public override string GetApiName()
  17. {
  18. return "taobao.top.appinfo.get";
  19. }
  20. public override IDictionary<string, string> GetParameters()
  21. {
  22. TopDictionary parameters = new TopDictionary();
  23. parameters.Add("appkey", this.Appkey);
  24. if (this.otherParams != null)
  25. {
  26. parameters.AddAll(this.otherParams);
  27. }
  28. return parameters;
  29. }
  30. public override void Validate()
  31. {
  32. RequestValidator.ValidateRequired("appkey", this.Appkey);
  33. }
  34. #endregion
  35. }
  36. }