26 |
|
|
27 |
namespace DotGNU.XmlRpc |
namespace DotGNU.XmlRpc |
28 |
{ |
{ |
29 |
public class XmlRpcMethod |
public class XmlRpcMethod : ArrayList |
30 |
{ |
{ |
31 |
protected String name; // Name of method being called |
protected String name; // Name of method being called |
32 |
protected IList parameters = new ArrayList(); // List of parameters being passed |
|
|
|
|
33 |
public XmlRpcMethod() |
public XmlRpcMethod() |
34 |
{ |
{ |
35 |
} |
} |
49 |
} |
} |
50 |
} |
} |
51 |
|
|
|
public IList Parameters |
|
|
{ |
|
|
get { |
|
|
return this.parameters; |
|
|
} |
|
|
} |
|
|
|
|
52 |
public object Invoke() |
public object Invoke() |
53 |
{ |
{ |
54 |
// Ensure that we support method aliasing. Ie the method name |
// Ensure that we support method aliasing. Ie the method name |
60 |
|
|
61 |
public override string ToString() |
public override string ToString() |
62 |
{ |
{ |
63 |
string s = String.Format( "XmlRpcMethod: name='{0}' parameter count='{1}'", name, parameters.Count ); |
string s = String.Format( "XmlRpcMethod: name='{0}' parameter count='{1}'", name, this.Count ); |
64 |
return s; |
return s; |
65 |
} |
} |
66 |
} |
} |