var TradeWS=function() {
TradeWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TradeWS.prototype={
getTrades:function(numOfPairs,succeededCallback, failedCallback, userContext) {
return this._invoke(TradeWS.get_path(), 'getTrades',false,{numOfPairs:numOfPairs},succeededCallback,failedCallback,userContext); }}
TradeWS.registerClass('TradeWS',Sys.Net.WebServiceProxy);
TradeWS._staticInstance = new TradeWS();
TradeWS.set_path = function(value) { TradeWS._staticInstance._path = value; }
TradeWS.get_path = function() { return TradeWS._staticInstance._path; }
TradeWS.set_timeout = function(value) { TradeWS._staticInstance._timeout = value; }
TradeWS.get_timeout = function() { return TradeWS._staticInstance._timeout; }
TradeWS.set_defaultUserContext = function(value) { TradeWS._staticInstance._userContext = value; }
TradeWS.get_defaultUserContext = function() { return TradeWS._staticInstance._userContext; }
TradeWS.set_defaultSucceededCallback = function(value) { TradeWS._staticInstance._succeeded = value; }
TradeWS.get_defaultSucceededCallback = function() { return TradeWS._staticInstance._succeeded; }
TradeWS.set_defaultFailedCallback = function(value) { TradeWS._staticInstance._failed = value; }
TradeWS.get_defaultFailedCallback = function() { return TradeWS._staticInstance._failed; }
TradeWS.set_path("/ApplicationServices/TradesMonitor/TradeWS.asmx");
TradeWS.getTrades= function(numOfPairs,onSuccess,onFailed,userContext) {TradeWS._staticInstance.getTrades(numOfPairs,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Trades) === 'undefined') {
var Trades=gtc("Trades");
Trades.registerClass('Trades');
}
