var FrontEndService=function() {
FrontEndService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
FrontEndService.prototype={
AddProductToCart:function(idProduct,succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndService.get_path(), 'AddProductToCart',false,{idProduct:idProduct},succeededCallback,failedCallback,userContext); },
ClearCart:function(succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndService.get_path(), 'ClearCart',false,{},succeededCallback,failedCallback,userContext); },
AddIdToCompare:function(idProduct,succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndService.get_path(), 'AddIdToCompare',false,{idProduct:idProduct},succeededCallback,failedCallback,userContext); },
RemoveIdToCompare:function(idProduct,succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndService.get_path(), 'RemoveIdToCompare',false,{idProduct:idProduct},succeededCallback,failedCallback,userContext); },
ClearCompareProducts:function(succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndService.get_path(), 'ClearCompareProducts',false,{},succeededCallback,failedCallback,userContext); },
ChangeproductPropertyValue:function(id,propertyName,newValue,succeededCallback, failedCallback, userContext) {
return this._invoke(FrontEndService.get_path(), 'ChangeproductPropertyValue',false,{id:id,propertyName:propertyName,newValue:newValue},succeededCallback,failedCallback,userContext); }}
FrontEndService.registerClass('FrontEndService',Sys.Net.WebServiceProxy);
FrontEndService._staticInstance = new FrontEndService();
FrontEndService.set_path = function(value) { FrontEndService._staticInstance._path = value; }
FrontEndService.get_path = function() { return FrontEndService._staticInstance._path; }
FrontEndService.set_timeout = function(value) { FrontEndService._staticInstance._timeout = value; }
FrontEndService.get_timeout = function() { return FrontEndService._staticInstance._timeout; }
FrontEndService.set_defaultUserContext = function(value) { FrontEndService._staticInstance._userContext = value; }
FrontEndService.get_defaultUserContext = function() { return FrontEndService._staticInstance._userContext; }
FrontEndService.set_defaultSucceededCallback = function(value) { FrontEndService._staticInstance._succeeded = value; }
FrontEndService.get_defaultSucceededCallback = function() { return FrontEndService._staticInstance._succeeded; }
FrontEndService.set_defaultFailedCallback = function(value) { FrontEndService._staticInstance._failed = value; }
FrontEndService.get_defaultFailedCallback = function() { return FrontEndService._staticInstance._failed; }
FrontEndService.set_path("/FrontEndService.asmx");
FrontEndService.AddProductToCart= function(idProduct,onSuccess,onFailed,userContext) {FrontEndService._staticInstance.AddProductToCart(idProduct,onSuccess,onFailed,userContext); }
FrontEndService.ClearCart= function(onSuccess,onFailed,userContext) {FrontEndService._staticInstance.ClearCart(onSuccess,onFailed,userContext); }
FrontEndService.AddIdToCompare= function(idProduct,onSuccess,onFailed,userContext) {FrontEndService._staticInstance.AddIdToCompare(idProduct,onSuccess,onFailed,userContext); }
FrontEndService.RemoveIdToCompare= function(idProduct,onSuccess,onFailed,userContext) {FrontEndService._staticInstance.RemoveIdToCompare(idProduct,onSuccess,onFailed,userContext); }
FrontEndService.ClearCompareProducts= function(onSuccess,onFailed,userContext) {FrontEndService._staticInstance.ClearCompareProducts(onSuccess,onFailed,userContext); }
FrontEndService.ChangeproductPropertyValue= function(id,propertyName,newValue,onSuccess,onFailed,userContext) {FrontEndService._staticInstance.ChangeproductPropertyValue(id,propertyName,newValue,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(ServiceCallResult) === 'undefined') {
var ServiceCallResult=gtc("ServiceCallResult");
ServiceCallResult.registerClass('ServiceCallResult');
}

