var HelperFunctions=function() {
HelperFunctions.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
HelperFunctions.prototype={
AddItemToCart:function(userID,itemID,quantity,succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'AddItemToCart',false,{userID:userID,itemID:itemID,quantity:quantity},succeededCallback,failedCallback,userContext); },
GetSpecailOffersSt:function(succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'GetSpecailOffersSt',false,{},succeededCallback,failedCallback,userContext); },
GetLastProducts:function(succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'GetLastProducts',false,{},succeededCallback,failedCallback,userContext); },
GetLastNews:function(succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'GetLastNews',false,{},succeededCallback,failedCallback,userContext); },
LoadDefaultPage_welcomeText_English:function(succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'LoadDefaultPage_welcomeText_English',false,{},succeededCallback,failedCallback,userContext); },
LoadDefaultPage_welcomeText_Arabic:function(succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'LoadDefaultPage_welcomeText_Arabic',false,{},succeededCallback,failedCallback,userContext); },
Get_Show_FoodMenu:function(succeededCallback, failedCallback, userContext) {
return this._invoke(HelperFunctions.get_path(), 'Get_Show_FoodMenu',false,{},succeededCallback,failedCallback,userContext); }}
HelperFunctions.registerClass('HelperFunctions',Sys.Net.WebServiceProxy);
HelperFunctions._staticInstance = new HelperFunctions();
HelperFunctions.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; HelperFunctions._staticInstance._path = value; }
HelperFunctions.get_path = function() { return HelperFunctions._staticInstance._path; }
HelperFunctions.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
HelperFunctions._staticInstance._timeout = value; }
HelperFunctions.get_timeout = function() { 
return HelperFunctions._staticInstance._timeout; }
HelperFunctions.set_defaultUserContext = function(value) { 
HelperFunctions._staticInstance._userContext = value; }
HelperFunctions.get_defaultUserContext = function() { 
return HelperFunctions._staticInstance._userContext; }
HelperFunctions.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; HelperFunctions._staticInstance._succeeded = value; }
HelperFunctions.get_defaultSucceededCallback = function() { 
return HelperFunctions._staticInstance._succeeded; }
HelperFunctions.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; HelperFunctions._staticInstance._failed = value; }
HelperFunctions.get_defaultFailedCallback = function() { 
return HelperFunctions._staticInstance._failed; }
HelperFunctions.set_path("/HelperFunctions.asmx");
HelperFunctions.AddItemToCart= function(userID,itemID,quantity,onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.AddItemToCart(userID,itemID,quantity,onSuccess,onFailed,userContext); }
HelperFunctions.GetSpecailOffersSt= function(onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.GetSpecailOffersSt(onSuccess,onFailed,userContext); }
HelperFunctions.GetLastProducts= function(onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.GetLastProducts(onSuccess,onFailed,userContext); }
HelperFunctions.GetLastNews= function(onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.GetLastNews(onSuccess,onFailed,userContext); }
HelperFunctions.LoadDefaultPage_welcomeText_English= function(onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.LoadDefaultPage_welcomeText_English(onSuccess,onFailed,userContext); }
HelperFunctions.LoadDefaultPage_welcomeText_Arabic= function(onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.LoadDefaultPage_welcomeText_Arabic(onSuccess,onFailed,userContext); }
HelperFunctions.Get_Show_FoodMenu= function(onSuccess,onFailed,userContext) {HelperFunctions._staticInstance.Get_Show_FoodMenu(onSuccess,onFailed,userContext); }
