1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| 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();
| }
| }
|
|