IAliyunRequest.cs 800 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. namespace Aliyun.Api
  3. {
  4. /// <summary>
  5. /// TOP请求接口。
  6. /// </summary>
  7. public interface IAliyunRequest<T> where T : AliyunResponse
  8. {
  9. /// <summary>
  10. /// 获取TOP的API名称。
  11. /// </summary>
  12. /// <returns>API名称</returns>
  13. string GetApiName();
  14. /// <summary>
  15. /// 获取所有的Key-Value形式的文本请求参数字典。其中:
  16. /// Key: 请求参数名
  17. /// Value: 请求参数文本值
  18. /// </summary>
  19. /// <returns>文本请求参数字典</returns>
  20. IDictionary<string, string> GetParameters();
  21. /// <summary>
  22. /// 提前验证参数。
  23. /// </summary>
  24. void Validate();
  25. }
  26. }