var ServiceMethods=function() {
ServiceMethods.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ServiceMethods.prototype={
Translate:function(keyString,englishString,farsiString,currentSelectedLanguage,labelId,textEnglishId,textFarsiId,succeededCallback, failedCallback, userContext) {
return this._invoke(ServiceMethods.get_path(), 'Translate',false,{keyString:keyString,englishString:englishString,farsiString:farsiString,currentSelectedLanguage:currentSelectedLanguage,labelId:labelId,textEnglishId:textEnglishId,textFarsiId:textFarsiId},succeededCallback,failedCallback,userContext); },
GetProductCount:function(productId,succeededCallback, failedCallback, userContext) {
return this._invoke(ServiceMethods.get_path(), 'GetProductCount',false,{productId:productId},succeededCallback,failedCallback,userContext); },
AddProduct:function(productId,succeededCallback, failedCallback, userContext) {
return this._invoke(ServiceMethods.get_path(), 'AddProduct',false,{productId:productId},succeededCallback,failedCallback,userContext); },
RemoveProduct:function(productId,succeededCallback, failedCallback, userContext) {
return this._invoke(ServiceMethods.get_path(), 'RemoveProduct',false,{productId:productId},succeededCallback,failedCallback,userContext); }}
ServiceMethods.registerClass('ServiceMethods',Sys.Net.WebServiceProxy);
ServiceMethods._staticInstance = new ServiceMethods();
ServiceMethods.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ServiceMethods._staticInstance._path = value; }
ServiceMethods.get_path = function() { return ServiceMethods._staticInstance._path; }
ServiceMethods.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); }
ServiceMethods._staticInstance._timeout = value; }
ServiceMethods.get_timeout = function() { 
return ServiceMethods._staticInstance._timeout; }
ServiceMethods.set_defaultUserContext = function(value) { 
ServiceMethods._staticInstance._userContext = value; }
ServiceMethods.get_defaultUserContext = function() { 
return ServiceMethods._staticInstance._userContext; }
ServiceMethods.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ServiceMethods._staticInstance._succeeded = value; }
ServiceMethods.get_defaultSucceededCallback = function() { 
return ServiceMethods._staticInstance._succeeded; }
ServiceMethods.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ServiceMethods._staticInstance._failed = value; }
ServiceMethods.get_defaultFailedCallback = function() { 
return ServiceMethods._staticInstance._failed; }
ServiceMethods.set_path("/Services/ServiceMethods.asmx");
ServiceMethods.Translate= function(keyString,englishString,farsiString,currentSelectedLanguage,labelId,textEnglishId,textFarsiId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.Translate(keyString,englishString,farsiString,currentSelectedLanguage,labelId,textEnglishId,textFarsiId,onSuccess,onFailed,userContext); }
ServiceMethods.GetProductCount= function(productId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.GetProductCount(productId,onSuccess,onFailed,userContext); }
ServiceMethods.AddProduct= function(productId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.AddProduct(productId,onSuccess,onFailed,userContext); }
ServiceMethods.RemoveProduct= function(productId,onSuccess,onFailed,userContext) {ServiceMethods._staticInstance.RemoveProduct(productId,onSuccess,onFailed,userContext); }
