-
Notifications
You must be signed in to change notification settings - Fork 0
/
ISpecifier.cs
50 lines (43 loc) · 1.46 KB
/
ISpecifier.cs
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
44
45
46
47
48
49
50
namespace Documentation
{
public interface ISpecifier
{
string GetApiDescription();
string[] GetApiMethodNames();
string GetApiMethodDescription(string methodName);
string[] GetApiMethodParamNames(string methodName);
string GetApiMethodParamDescription(string methodName, string paramName);
ApiParamDescription GetApiMethodParamFullDescription(string methodName, string paramName);
ApiMethodDescription GetApiMethodFullDescription(string methodName);
}
public class CommonDescription
{
public CommonDescription()
{
}
public CommonDescription(string name, string description = null)
{
Name = name;
Description = description;
}
public string Name { get; set; }
public string Description { get; set; }
}
public class ApiMethodDescription
{
public CommonDescription MethodDescription { get; set; }
public ApiParamDescription[] ParamDescriptions { get; set; }
public ApiParamDescription ReturnDescription { get; set; }
}
public class ApiParamDescription
{
public CommonDescription ParamDescription { get; set; }
public bool Required { get; set; }
public object MinValue { get; set; }
public object MaxValue { get; set; }
}
public class ApiClassDescription
{
public ApiMethodDescription[] MethodDescriptions { get; set; }
}
}