1 | /* |
---|
2 | XML-RPC.NET library |
---|
3 | Copyright (c) 2001-2006, Charles Cook <charlescook@cookcomputing.com> |
---|
4 | |
---|
5 | Permission is hereby granted, free of charge, to any person |
---|
6 | obtaining a copy of this software and associated documentation |
---|
7 | files (the "Software"), to deal in the Software without restriction, |
---|
8 | including without limitation the rights to use, copy, modify, merge, |
---|
9 | publish, distribute, sublicense, and/or sell copies of the Software, |
---|
10 | and to permit persons to whom the Software is furnished to do so, |
---|
11 | subject to the following conditions: |
---|
12 | |
---|
13 | The above copyright notice and this permission notice shall be |
---|
14 | included in all copies or substantial portions of the Software. |
---|
15 | |
---|
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
---|
17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
---|
18 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
---|
19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
---|
20 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
---|
21 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
---|
22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
---|
23 | DEALINGS IN THE SOFTWARE. |
---|
24 | */ |
---|
25 | |
---|
26 | namespace CookComputing.XmlRpc |
---|
27 | { |
---|
28 | using System; |
---|
29 | using System.Reflection; |
---|
30 | |
---|
31 | public class XmlRpcMethodInfo : IComparable |
---|
32 | { |
---|
33 | public XmlRpcMethodInfo() |
---|
34 | { |
---|
35 | } |
---|
36 | |
---|
37 | public bool IsHidden |
---|
38 | { |
---|
39 | get { return isHidden; } |
---|
40 | set { isHidden = value; } |
---|
41 | } |
---|
42 | |
---|
43 | public String Doc |
---|
44 | { |
---|
45 | get { return doc; } |
---|
46 | set { doc = value; } |
---|
47 | } |
---|
48 | |
---|
49 | public MethodInfo MethodInfo |
---|
50 | { |
---|
51 | get { return mi; } |
---|
52 | set { mi = value; } |
---|
53 | } |
---|
54 | |
---|
55 | public String MiName |
---|
56 | { |
---|
57 | get { return name; } |
---|
58 | set { name = value; } |
---|
59 | } |
---|
60 | |
---|
61 | public XmlRpcParameterInfo[] Parameters |
---|
62 | { |
---|
63 | get { return paramInfos; } |
---|
64 | set { paramInfos = value; } |
---|
65 | } |
---|
66 | |
---|
67 | public Type ReturnType |
---|
68 | { |
---|
69 | get { return returnType; } |
---|
70 | set { returnType = value; } |
---|
71 | } |
---|
72 | |
---|
73 | public string ReturnXmlRpcType |
---|
74 | { |
---|
75 | get { return returnXmlRpcType; } |
---|
76 | set { returnXmlRpcType = value; } |
---|
77 | } |
---|
78 | |
---|
79 | public String ReturnDoc |
---|
80 | { |
---|
81 | get { return returnDoc; } |
---|
82 | set { returnDoc = value; } |
---|
83 | } |
---|
84 | |
---|
85 | public String XmlRpcName |
---|
86 | { |
---|
87 | get { return xmlRpcName; } |
---|
88 | set { xmlRpcName = value; } |
---|
89 | } |
---|
90 | |
---|
91 | public int CompareTo(object obj) |
---|
92 | { |
---|
93 | XmlRpcMethodInfo xmi = (XmlRpcMethodInfo)obj; |
---|
94 | return this.xmlRpcName.CompareTo(xmi.xmlRpcName); |
---|
95 | } |
---|
96 | |
---|
97 | MethodInfo mi; |
---|
98 | bool isHidden; |
---|
99 | string doc=""; |
---|
100 | string name=""; |
---|
101 | string xmlRpcName=""; |
---|
102 | string returnDoc=""; |
---|
103 | Type returnType; |
---|
104 | string returnXmlRpcType; |
---|
105 | XmlRpcParameterInfo[] paramInfos; |
---|
106 | } |
---|
107 | } |
---|