Type.registerNamespace('FunStuff');
FunStuff.CartService=function() {
FunStuff.CartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FunStuff.CartService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return FunStuff.CartService._staticInstance.get_path();},
GetStatus:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetStatus',false,{},succeededCallback,failedCallback,userContext); },
AddItemToCart:function(modelId,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddItemToCart',false,{modelId:modelId,quantity:quantity},succeededCallback,failedCallback,userContext); }}
FunStuff.CartService.registerClass('FunStuff.CartService',Sys.Net.WebServiceProxy);
FunStuff.CartService._staticInstance = new FunStuff.CartService();
FunStuff.CartService.set_path = function(value) { FunStuff.CartService._staticInstance.set_path(value); }
FunStuff.CartService.get_path = function() { return FunStuff.CartService._staticInstance.get_path(); }
FunStuff.CartService.set_timeout = function(value) { FunStuff.CartService._staticInstance.set_timeout(value); }
FunStuff.CartService.get_timeout = function() { return FunStuff.CartService._staticInstance.get_timeout(); }
FunStuff.CartService.set_defaultUserContext = function(value) { FunStuff.CartService._staticInstance.set_defaultUserContext(value); }
FunStuff.CartService.get_defaultUserContext = function() { return FunStuff.CartService._staticInstance.get_defaultUserContext(); }
FunStuff.CartService.set_defaultSucceededCallback = function(value) { FunStuff.CartService._staticInstance.set_defaultSucceededCallback(value); }
FunStuff.CartService.get_defaultSucceededCallback = function() { return FunStuff.CartService._staticInstance.get_defaultSucceededCallback(); }
FunStuff.CartService.set_defaultFailedCallback = function(value) { FunStuff.CartService._staticInstance.set_defaultFailedCallback(value); }
FunStuff.CartService.get_defaultFailedCallback = function() { return FunStuff.CartService._staticInstance.get_defaultFailedCallback(); }
FunStuff.CartService.set_path("/Services/FunStuffCartService.asmx");
FunStuff.CartService.GetStatus= function(onSuccess,onFailed,userContext) {FunStuff.CartService._staticInstance.GetStatus(onSuccess,onFailed,userContext); }
FunStuff.CartService.AddItemToCart= function(modelId,quantity,onSuccess,onFailed,userContext) {FunStuff.CartService._staticInstance.AddItemToCart(modelId,quantity,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(FunStuff.CartStatusResponse) === 'undefined') {
FunStuff.CartStatusResponse=gtc("FunStuff.CartStatusResponse");
FunStuff.CartStatusResponse.registerClass('FunStuff.CartStatusResponse');
}
if (typeof(FunStuff.AddToCartResponse) === 'undefined') {
FunStuff.AddToCartResponse=gtc("FunStuff.AddToCartResponse");
FunStuff.AddToCartResponse.registerClass('FunStuff.AddToCartResponse');
}

