Type.registerNamespace('IShop.Web.Services');
IShop.Web.Services.ShoppingCarService=function() {
IShop.Web.Services.ShoppingCarService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
IShop.Web.Services.ShoppingCarService.prototype={
Add:function(productid,succeededCallback, failedCallback, userContext) {
return this._invoke(IShop.Web.Services.ShoppingCarService.get_path(), 'Add',false,{productid:productid},succeededCallback,failedCallback,userContext); },
Clear:function(succeededCallback, failedCallback, userContext) {
return this._invoke(IShop.Web.Services.ShoppingCarService.get_path(), 'Clear',false,{},succeededCallback,failedCallback,userContext); },
Delete:function(shoppingCarId,succeededCallback, failedCallback, userContext) {
return this._invoke(IShop.Web.Services.ShoppingCarService.get_path(), 'Delete',false,{shoppingCarId:shoppingCarId},succeededCallback,failedCallback,userContext); }}
IShop.Web.Services.ShoppingCarService.registerClass('IShop.Web.Services.ShoppingCarService',Sys.Net.WebServiceProxy);
IShop.Web.Services.ShoppingCarService._staticInstance = new IShop.Web.Services.ShoppingCarService();
IShop.Web.Services.ShoppingCarService.set_path = function(value) { IShop.Web.Services.ShoppingCarService._staticInstance._path = value; }
IShop.Web.Services.ShoppingCarService.get_path = function() { return IShop.Web.Services.ShoppingCarService._staticInstance._path; }
IShop.Web.Services.ShoppingCarService.set_timeout = function(value) { IShop.Web.Services.ShoppingCarService._staticInstance._timeout = value; }
IShop.Web.Services.ShoppingCarService.get_timeout = function() { return IShop.Web.Services.ShoppingCarService._staticInstance._timeout; }
IShop.Web.Services.ShoppingCarService.set_defaultUserContext = function(value) { IShop.Web.Services.ShoppingCarService._staticInstance._userContext = value; }
IShop.Web.Services.ShoppingCarService.get_defaultUserContext = function() { return IShop.Web.Services.ShoppingCarService._staticInstance._userContext; }
IShop.Web.Services.ShoppingCarService.set_defaultSucceededCallback = function(value) { IShop.Web.Services.ShoppingCarService._staticInstance._succeeded = value; }
IShop.Web.Services.ShoppingCarService.get_defaultSucceededCallback = function() { return IShop.Web.Services.ShoppingCarService._staticInstance._succeeded; }
IShop.Web.Services.ShoppingCarService.set_defaultFailedCallback = function(value) { IShop.Web.Services.ShoppingCarService._staticInstance._failed = value; }
IShop.Web.Services.ShoppingCarService.get_defaultFailedCallback = function() { return IShop.Web.Services.ShoppingCarService._staticInstance._failed; }
IShop.Web.Services.ShoppingCarService.set_path("/DesktopModules/IPortal/IShop/WebServices/ShoppingCarService.asmx");
IShop.Web.Services.ShoppingCarService.Add= function(productid,onSuccess,onFailed,userContext) {IShop.Web.Services.ShoppingCarService._staticInstance.Add(productid,onSuccess,onFailed,userContext); }
IShop.Web.Services.ShoppingCarService.Clear= function(onSuccess,onFailed,userContext) {IShop.Web.Services.ShoppingCarService._staticInstance.Clear(onSuccess,onFailed,userContext); }
IShop.Web.Services.ShoppingCarService.Delete= function(shoppingCarId,onSuccess,onFailed,userContext) {IShop.Web.Services.ShoppingCarService._staticInstance.Delete(shoppingCarId,onSuccess,onFailed,userContext); }
