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
35
36
37
38
39
40
41
42
43
  | using System; 
 |  using System.Collections.Generic; 
 |    
 |  namespace DingTalk.Api 
 |  { 
 |      /// <summary> 
 |      /// TOP请求接口。 
 |      /// </summary> 
 |      public interface IDingTalkRequest<out T> where T : DingTalkResponse 
 |      { 
 |          /// <summary> 
 |          /// 获取TOP的API名称。 
 |          /// </summary> 
 |          string GetApiName(); 
 |    
 |          /// <summary> 
 |          /// 获取API请求方式。 
 |          /// </summary> 
 |          /// <returns>The API call type.</returns> 
 |          string GetApiCallType(); 
 |    
 |          /// <summary> 
 |          /// 获取所有的Key-Value形式的文本请求参数字典。 
 |          /// </summary> 
 |          IDictionary<string, string> GetParameters(); 
 |    
 |          /// <summary> 
 |          /// 获取自定义HTTP请求头参数。 
 |          /// </summary> 
 |          IDictionary<string, string> GetHeaderParameters(); 
 |    
 |          /// <summary> 
 |          /// 客户端参数检查,减少服务端无效调用。 
 |          /// </summary> 
 |          void Validate(); 
 |    
 |          /// <summary> 
 |          /// 获取http method 
 |          /// </summary> 
 |          /// <returns>The http method.</returns> 
 |          string GetHttpMethod(); 
 |      } 
 |  } 
 |  
  |