var FrontEndServices=function() {
FrontEndServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FrontEndServices.prototype={
AddProductToCart:function(idProduct,additionalOptionsIds,amount,succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndServices.get_path(), 'AddProductToCart',false,{idProduct:idProduct,additionalOptionsIds:additionalOptionsIds,amount:amount},succeededCallback,failedCallback,userContext); },
UpdateBasketInformation:function(succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndServices.get_path(), 'UpdateBasketInformation',false,{},succeededCallback,failedCallback,userContext); },
EmptyCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndServices.get_path(), 'EmptyCart',false,{},succeededCallback,failedCallback,userContext); },
SendFreeAdvertQuery:function(idFreeAdvert,contactDetails,query,succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndServices.get_path(), 'SendFreeAdvertQuery',false,{idFreeAdvert:idFreeAdvert,contactDetails:contactDetails,query:query},succeededCallback,failedCallback,userContext); }}
FrontEndServices.registerClass('FrontEndServices',Sys.Net.WebServiceProxy);
FrontEndServices._staticInstance = new FrontEndServices();
FrontEndServices.set_path = function(value) { FrontEndServices._staticInstance._path = value; }
FrontEndServices.get_path = function() { return FrontEndServices._staticInstance._path; }
FrontEndServices.set_timeout = function(value) { FrontEndServices._staticInstance._timeout = value; }
FrontEndServices.get_timeout = function() { return FrontEndServices._staticInstance._timeout; }
FrontEndServices.set_defaultUserContext = function(value) { FrontEndServices._staticInstance._userContext = value; }
FrontEndServices.get_defaultUserContext = function() { return FrontEndServices._staticInstance._userContext; }
FrontEndServices.set_defaultSucceededCallback = function(value) { FrontEndServices._staticInstance._succeeded = value; }
FrontEndServices.get_defaultSucceededCallback = function() { return FrontEndServices._staticInstance._succeeded; }
FrontEndServices.set_defaultFailedCallback = function(value) { FrontEndServices._staticInstance._failed = value; }
FrontEndServices.get_defaultFailedCallback = function() { return FrontEndServices._staticInstance._failed; }
FrontEndServices.set_path("/WebServices/FrontEndServices.asmx");
FrontEndServices.AddProductToCart= function(idProduct,additionalOptionsIds,amount,onSuccess,onFailed,userContext) {FrontEndServices._staticInstance.AddProductToCart(idProduct,additionalOptionsIds,amount,onSuccess,onFailed,userContext); }
FrontEndServices.UpdateBasketInformation= function(onSuccess,onFailed,userContext) {FrontEndServices._staticInstance.UpdateBasketInformation(onSuccess,onFailed,userContext); }
FrontEndServices.EmptyCart= function(onSuccess,onFailed,userContext) {FrontEndServices._staticInstance.EmptyCart(onSuccess,onFailed,userContext); }
FrontEndServices.SendFreeAdvertQuery= function(idFreeAdvert,contactDetails,query,onSuccess,onFailed,userContext) {FrontEndServices._staticInstance.SendFreeAdvertQuery(idFreeAdvert,contactDetails,query,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(ServiceCallResult) === 'undefined') {
var ServiceCallResult=gtc("ServiceCallResult");
ServiceCallResult.registerClass('ServiceCallResult');
}

