24 |
namespace DotGNU.XmlRpc |
namespace DotGNU.XmlRpc |
25 |
{ |
{ |
26 |
using System.Reflection; |
using System.Reflection; |
27 |
|
using System.Collections; |
28 |
|
|
29 |
public class XmlRpcRequest |
public class XmlRpcRequest |
30 |
{ |
{ |
31 |
private String method = null; // Name of method being called |
protected String method; // Name of method being called |
32 |
private MethodInfo methinfo = null; // Method info |
protected IList parameters; // List of parameters being passed |
33 |
private Object[] args = null; // Multi-typed Args to pass to method |
|
34 |
|
public XmlRpcRequest() |
|
public String Method |
|
35 |
{ |
{ |
|
get { |
|
|
return this.method; |
|
|
} |
|
|
set { |
|
|
this.method = value; |
|
|
} |
|
36 |
} |
} |
37 |
|
|
38 |
public MethodInfo MethodInformation |
public XmlRpcRequest( String methodName ) |
39 |
{ |
{ |
40 |
get { |
method = methodName; |
|
return this.methinfo; |
|
|
} |
|
|
set { |
|
|
this.methinfo = value; |
|
|
} |
|
41 |
} |
} |
42 |
|
|
43 |
public Object[] Arguments |
public String Method |
44 |
{ |
{ |
45 |
get { |
get { |
46 |
return this.args; |
return this.method; |
47 |
} |
} |
48 |
set { |
set { |
49 |
this.args = value; |
this.method = value; |
50 |
} |
} |
51 |
} |
} |
52 |
|
|
53 |
public XmlRpcRequest() |
public IList Parameters |
|
{ |
|
|
} |
|
|
|
|
|
public XmlRpcRequest( String methodName ) |
|
|
{ |
|
|
method = methodName; |
|
|
} |
|
|
|
|
|
public XmlRpcRequest( String methodName, MethodInfo minfo ) |
|
|
: this( methodName ) |
|
|
{ |
|
|
methinfo = minfo; |
|
|
} |
|
|
|
|
|
public XmlRpcRequest( String methodName, MethodInfo minfo, Object[] al ) |
|
54 |
{ |
{ |
55 |
method = methodName; |
get { |
56 |
methinfo = minfo; |
return this.parameters; |
57 |
args = al; |
} |
58 |
} |
} |
59 |
} |
} |
60 |
} |
} |