Type.registerNamespace('PublicStore.AjaxServices');
PublicStore.AjaxServices.ProductService=function() {
PublicStore.AjaxServices.ProductService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PublicStore.AjaxServices.ProductService.prototype={
GetProductInfos:function(productId,selectedCategoryId,newPhotoName,succeededCallback, failedCallback, userContext) {
return this._invoke(PublicStore.AjaxServices.ProductService.get_path(), 'GetProductInfos',false,{productId:productId,selectedCategoryId:selectedCategoryId,newPhotoName:newPhotoName},succeededCallback,failedCallback,userContext); },
GetCategoryImageUrl:function(selectedCategoryId,succeededCallback, failedCallback, userContext) {
return this._invoke(PublicStore.AjaxServices.ProductService.get_path(), 'GetCategoryImageUrl',false,{selectedCategoryId:selectedCategoryId},succeededCallback,failedCallback,userContext); }}
PublicStore.AjaxServices.ProductService.registerClass('PublicStore.AjaxServices.ProductService',Sys.Net.WebServiceProxy);
PublicStore.AjaxServices.ProductService._staticInstance = new PublicStore.AjaxServices.ProductService();
PublicStore.AjaxServices.ProductService.set_path = function(value) { PublicStore.AjaxServices.ProductService._staticInstance._path = value; }
PublicStore.AjaxServices.ProductService.get_path = function() { return PublicStore.AjaxServices.ProductService._staticInstance._path; }
PublicStore.AjaxServices.ProductService.set_timeout = function(value) { PublicStore.AjaxServices.ProductService._staticInstance._timeout = value; }
PublicStore.AjaxServices.ProductService.get_timeout = function() { return PublicStore.AjaxServices.ProductService._staticInstance._timeout; }
PublicStore.AjaxServices.ProductService.set_defaultUserContext = function(value) { PublicStore.AjaxServices.ProductService._staticInstance._userContext = value; }
PublicStore.AjaxServices.ProductService.get_defaultUserContext = function() { return PublicStore.AjaxServices.ProductService._staticInstance._userContext; }
PublicStore.AjaxServices.ProductService.set_defaultSucceededCallback = function(value) { PublicStore.AjaxServices.ProductService._staticInstance._succeeded = value; }
PublicStore.AjaxServices.ProductService.get_defaultSucceededCallback = function() { return PublicStore.AjaxServices.ProductService._staticInstance._succeeded; }
PublicStore.AjaxServices.ProductService.set_defaultFailedCallback = function(value) { PublicStore.AjaxServices.ProductService._staticInstance._failed = value; }
PublicStore.AjaxServices.ProductService.get_defaultFailedCallback = function() { return PublicStore.AjaxServices.ProductService._staticInstance._failed; }
PublicStore.AjaxServices.ProductService.set_path("/AjaxServices/ProductService.asmx");
PublicStore.AjaxServices.ProductService.GetProductInfos= function(productId,selectedCategoryId,newPhotoName,onSuccess,onFailed,userContext) {PublicStore.AjaxServices.ProductService._staticInstance.GetProductInfos(productId,selectedCategoryId,newPhotoName,onSuccess,onFailed,userContext); }
PublicStore.AjaxServices.ProductService.GetCategoryImageUrl= function(selectedCategoryId,onSuccess,onFailed,userContext) {PublicStore.AjaxServices.ProductService._staticInstance.GetCategoryImageUrl(selectedCategoryId,onSuccess,onFailed,userContext); }
