Type.registerNamespace('bsshop.Services');
bsshop.Services.Basket=function() {
bsshop.Services.Basket.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
bsshop.Services.Basket.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return bsshop.Services.Basket._staticInstance.get_path();},
AddToBasket:function(productId,amount,localeIndex,currencyCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToBasket',false,{productId:productId,amount:amount,localeIndex:localeIndex,currencyCode:currencyCode},succeededCallback,failedCallback,userContext); }}
bsshop.Services.Basket.registerClass('bsshop.Services.Basket',Sys.Net.WebServiceProxy);
bsshop.Services.Basket._staticInstance = new bsshop.Services.Basket();
bsshop.Services.Basket.set_path = function(value) { bsshop.Services.Basket._staticInstance.set_path(value); }
bsshop.Services.Basket.get_path = function() { return bsshop.Services.Basket._staticInstance.get_path(); }
bsshop.Services.Basket.set_timeout = function(value) { bsshop.Services.Basket._staticInstance.set_timeout(value); }
bsshop.Services.Basket.get_timeout = function() { return bsshop.Services.Basket._staticInstance.get_timeout(); }
bsshop.Services.Basket.set_defaultUserContext = function(value) { bsshop.Services.Basket._staticInstance.set_defaultUserContext(value); }
bsshop.Services.Basket.get_defaultUserContext = function() { return bsshop.Services.Basket._staticInstance.get_defaultUserContext(); }
bsshop.Services.Basket.set_defaultSucceededCallback = function(value) { bsshop.Services.Basket._staticInstance.set_defaultSucceededCallback(value); }
bsshop.Services.Basket.get_defaultSucceededCallback = function() { return bsshop.Services.Basket._staticInstance.get_defaultSucceededCallback(); }
bsshop.Services.Basket.set_defaultFailedCallback = function(value) { bsshop.Services.Basket._staticInstance.set_defaultFailedCallback(value); }
bsshop.Services.Basket.get_defaultFailedCallback = function() { return bsshop.Services.Basket._staticInstance.get_defaultFailedCallback(); }
bsshop.Services.Basket.set_path("/Services/Basket.asmx");
bsshop.Services.Basket.AddToBasket= function(productId,amount,localeIndex,currencyCode,onSuccess,onFailed,userContext) {bsshop.Services.Basket._staticInstance.AddToBasket(productId,amount,localeIndex,currencyCode,onSuccess,onFailed,userContext); }

