| 12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using Top.Api;
- namespace QimenCloud.Api
- {
- public interface IQimenCloudRequest<out T> where T : QimenCloudResponse
- {
- /// <summary>
- /// 获取TOP的API名称。
- /// </summary>
- string GetApiName();
- /// <summary>
- /// 获取被调用的目标AppKey
- /// </summary>
- string GetTargetAppKey();
- /// <summary>
- /// 获取所有的Key-Value形式的文本请求参数字典。
- /// </summary>
- IDictionary<string, string> GetParameters();
- /// <summary>
- /// 获取自定义HTTP请求头参数。
- /// </summary>
- IDictionary<string, string> GetHeaderParameters();
- /// <summary>
- /// 客户端参数检查,减少服务端无效调用。
- /// </summary>
- void Validate();
- }
- }
|