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 | |
---|
30 | [AttributeUsage(AttributeTargets.Method)] |
---|
31 | public class XmlRpcMethodAttribute : Attribute |
---|
32 | { |
---|
33 | public XmlRpcMethodAttribute() |
---|
34 | { |
---|
35 | } |
---|
36 | |
---|
37 | public XmlRpcMethodAttribute(string method) |
---|
38 | { |
---|
39 | this.method = method; |
---|
40 | } |
---|
41 | |
---|
42 | public string Method |
---|
43 | { |
---|
44 | get |
---|
45 | { return method; } |
---|
46 | } |
---|
47 | |
---|
48 | public bool IntrospectionMethod |
---|
49 | { |
---|
50 | get { return introspectionMethod; } |
---|
51 | set { introspectionMethod = value; } |
---|
52 | } |
---|
53 | |
---|
54 | public bool StructParams |
---|
55 | { |
---|
56 | get { return structParams; } |
---|
57 | set { structParams = value; } |
---|
58 | } |
---|
59 | |
---|
60 | public override string ToString() |
---|
61 | { |
---|
62 | string value = "Method : " + method; |
---|
63 | return value; |
---|
64 | } |
---|
65 | |
---|
66 | public string Description = ""; |
---|
67 | public bool Hidden = false; |
---|
68 | private string method = ""; |
---|
69 | private bool introspectionMethod = false; |
---|
70 | private bool structParams = false; |
---|
71 | } |
---|
72 | } |
---|