WdkAiotOrgPropSearchRequest.cs 1.3 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: wdk.aiot.org.prop.search
  8. /// </summary>
  9. public class WdkAiotOrgPropSearchRequest : BaseTopRequest<Top.Api.Response.WdkAiotOrgPropSearchResponse>
  10. {
  11. /// <summary>
  12. /// 平台key
  13. /// </summary>
  14. public string AccessKey { get; set; }
  15. /// <summary>
  16. /// 平台签名
  17. /// </summary>
  18. public string AccessSign { get; set; }
  19. /// <summary>
  20. /// 要查询的机构编码
  21. /// </summary>
  22. public string Keywords { get; set; }
  23. #region ITopRequest Members
  24. public override string GetApiName()
  25. {
  26. return "wdk.aiot.org.prop.search";
  27. }
  28. public override IDictionary<string, string> GetParameters()
  29. {
  30. TopDictionary parameters = new TopDictionary();
  31. parameters.Add("access_key", this.AccessKey);
  32. parameters.Add("access_sign", this.AccessSign);
  33. parameters.Add("keywords", this.Keywords);
  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. }