Type.registerNamespace('Retail.Services.MyPortfolio');
Retail.Services.MyPortfolio.WatchList=function() {
Retail.Services.MyPortfolio.WatchList.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Retail.Services.MyPortfolio.WatchList.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Retail.Services.MyPortfolio.WatchList._staticInstance.get_path();},
Insert:function(pProductID,pLimitValue,pLimitRising,pNotifySMS,pNotifyEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Insert',false,{pProductID:pProductID,pLimitValue:pLimitValue,pLimitRising:pLimitRising,pNotifySMS:pNotifySMS,pNotifyEmail:pNotifyEmail},succeededCallback,failedCallback,userContext); },
hitLimit:function(user_id,limit_id,last_alert_sent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'hitLimit',false,{user_id:user_id,limit_id:limit_id,last_alert_sent:last_alert_sent},succeededCallback,failedCallback,userContext); }}
Retail.Services.MyPortfolio.WatchList.registerClass('Retail.Services.MyPortfolio.WatchList',Sys.Net.WebServiceProxy);
Retail.Services.MyPortfolio.WatchList._staticInstance = new Retail.Services.MyPortfolio.WatchList();
Retail.Services.MyPortfolio.WatchList.set_path = function(value) { Retail.Services.MyPortfolio.WatchList._staticInstance.set_path(value); }
Retail.Services.MyPortfolio.WatchList.get_path = function() { return Retail.Services.MyPortfolio.WatchList._staticInstance.get_path(); }
Retail.Services.MyPortfolio.WatchList.set_timeout = function(value) { Retail.Services.MyPortfolio.WatchList._staticInstance.set_timeout(value); }
Retail.Services.MyPortfolio.WatchList.get_timeout = function() { return Retail.Services.MyPortfolio.WatchList._staticInstance.get_timeout(); }
Retail.Services.MyPortfolio.WatchList.set_defaultUserContext = function(value) { Retail.Services.MyPortfolio.WatchList._staticInstance.set_defaultUserContext(value); }
Retail.Services.MyPortfolio.WatchList.get_defaultUserContext = function() { return Retail.Services.MyPortfolio.WatchList._staticInstance.get_defaultUserContext(); }
Retail.Services.MyPortfolio.WatchList.set_defaultSucceededCallback = function(value) { Retail.Services.MyPortfolio.WatchList._staticInstance.set_defaultSucceededCallback(value); }
Retail.Services.MyPortfolio.WatchList.get_defaultSucceededCallback = function() { return Retail.Services.MyPortfolio.WatchList._staticInstance.get_defaultSucceededCallback(); }
Retail.Services.MyPortfolio.WatchList.set_defaultFailedCallback = function(value) { Retail.Services.MyPortfolio.WatchList._staticInstance.set_defaultFailedCallback(value); }
Retail.Services.MyPortfolio.WatchList.get_defaultFailedCallback = function() { return Retail.Services.MyPortfolio.WatchList._staticInstance.get_defaultFailedCallback(); }
Retail.Services.MyPortfolio.WatchList.set_path("/Services/MyPortfolio/WatchList.asmx");
Retail.Services.MyPortfolio.WatchList.Insert= function(pProductID,pLimitValue,pLimitRising,pNotifySMS,pNotifyEmail,onSuccess,onFailed,userContext) {Retail.Services.MyPortfolio.WatchList._staticInstance.Insert(pProductID,pLimitValue,pLimitRising,pNotifySMS,pNotifyEmail,onSuccess,onFailed,userContext); }
Retail.Services.MyPortfolio.WatchList.hitLimit= function(user_id,limit_id,last_alert_sent,onSuccess,onFailed,userContext) {Retail.Services.MyPortfolio.WatchList._staticInstance.hitLimit(user_id,limit_id,last_alert_sent,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('cbcm.businessobject.portfolio');
if (typeof(cbcm.businessobject.portfolio.CWatchReturnValue) === 'undefined') {
cbcm.businessobject.portfolio.CWatchReturnValue=gtc("cbcm.businessobject.portfolio.CWatchReturnValue");
cbcm.businessobject.portfolio.CWatchReturnValue.registerClass('cbcm.businessobject.portfolio.CWatchReturnValue');
}

