Type.registerNamespace('comoffice.webstore');
comoffice.webstore.ShoppingCartService=function() {
comoffice.webstore.ShoppingCartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
comoffice.webstore.ShoppingCartService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return comoffice.webstore.ShoppingCartService._staticInstance.get_path();},
GetCartStatus:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCartStatus',false,{},succeededCallback,failedCallback,userContext); },
AddCart:function(itemCode,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddCart',false,{itemCode:itemCode,quantity:quantity},succeededCallback,failedCallback,userContext); },
AddFavourite:function(itemCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddFavourite',false,{itemCode:itemCode},succeededCallback,failedCallback,userContext); }}
comoffice.webstore.ShoppingCartService.registerClass('comoffice.webstore.ShoppingCartService',Sys.Net.WebServiceProxy);
comoffice.webstore.ShoppingCartService._staticInstance = new comoffice.webstore.ShoppingCartService();
comoffice.webstore.ShoppingCartService.set_path = function(value) { comoffice.webstore.ShoppingCartService._staticInstance.set_path(value); }
comoffice.webstore.ShoppingCartService.get_path = function() { return comoffice.webstore.ShoppingCartService._staticInstance.get_path(); }
comoffice.webstore.ShoppingCartService.set_timeout = function(value) { comoffice.webstore.ShoppingCartService._staticInstance.set_timeout(value); }
comoffice.webstore.ShoppingCartService.get_timeout = function() { return comoffice.webstore.ShoppingCartService._staticInstance.get_timeout(); }
comoffice.webstore.ShoppingCartService.set_defaultUserContext = function(value) { comoffice.webstore.ShoppingCartService._staticInstance.set_defaultUserContext(value); }
comoffice.webstore.ShoppingCartService.get_defaultUserContext = function() { return comoffice.webstore.ShoppingCartService._staticInstance.get_defaultUserContext(); }
comoffice.webstore.ShoppingCartService.set_defaultSucceededCallback = function(value) { comoffice.webstore.ShoppingCartService._staticInstance.set_defaultSucceededCallback(value); }
comoffice.webstore.ShoppingCartService.get_defaultSucceededCallback = function() { return comoffice.webstore.ShoppingCartService._staticInstance.get_defaultSucceededCallback(); }
comoffice.webstore.ShoppingCartService.set_defaultFailedCallback = function(value) { comoffice.webstore.ShoppingCartService._staticInstance.set_defaultFailedCallback(value); }
comoffice.webstore.ShoppingCartService.get_defaultFailedCallback = function() { return comoffice.webstore.ShoppingCartService._staticInstance.get_defaultFailedCallback(); }
comoffice.webstore.ShoppingCartService.set_path("/Webservice/ShoppingCartService.asmx");
comoffice.webstore.ShoppingCartService.GetCartStatus= function(onSuccess,onFailed,userContext) {comoffice.webstore.ShoppingCartService._staticInstance.GetCartStatus(onSuccess,onFailed,userContext); }
comoffice.webstore.ShoppingCartService.AddCart= function(itemCode,quantity,onSuccess,onFailed,userContext) {comoffice.webstore.ShoppingCartService._staticInstance.AddCart(itemCode,quantity,onSuccess,onFailed,userContext); }
comoffice.webstore.ShoppingCartService.AddFavourite= function(itemCode,onSuccess,onFailed,userContext) {comoffice.webstore.ShoppingCartService._staticInstance.AddFavourite(itemCode,onSuccess,onFailed,userContext); }

