Type.registerNamespace('Nowan.WebShop.Services');
Nowan.WebShop.Services.WebShopService=function() {
Nowan.WebShop.Services.WebShopService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Nowan.WebShop.Services.WebShopService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Nowan.WebShop.Services.WebShopService._staticInstance.get_path();},
HelloWorld:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
GetProductsToSlider:function(pageName,succeededCallback, failedCallback, userContext) {
/// <param name="pageName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetProductsToSlider',false,{pageName:pageName},succeededCallback,failedCallback,userContext); },
GetProductsByCategory:function(categoryId,succeededCallback, failedCallback, userContext) {
/// <param name="categoryId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetProductsByCategory',false,{categoryId:categoryId},succeededCallback,failedCallback,userContext); },
GetMostExpensiveProducts:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetMostExpensiveProducts',false,{},succeededCallback,failedCallback,userContext); },
GetRandomCategories:function(maxCount,succeededCallback, failedCallback, userContext) {
/// <param name="maxCount" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetRandomCategories',false,{maxCount:maxCount},succeededCallback,failedCallback,userContext); }}
Nowan.WebShop.Services.WebShopService.registerClass('Nowan.WebShop.Services.WebShopService',Sys.Net.WebServiceProxy);
Nowan.WebShop.Services.WebShopService._staticInstance = new Nowan.WebShop.Services.WebShopService();
Nowan.WebShop.Services.WebShopService.set_path = function(value) {
Nowan.WebShop.Services.WebShopService._staticInstance.set_path(value); }
Nowan.WebShop.Services.WebShopService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Nowan.WebShop.Services.WebShopService._staticInstance.get_path();}
Nowan.WebShop.Services.WebShopService.set_timeout = function(value) {
Nowan.WebShop.Services.WebShopService._staticInstance.set_timeout(value); }
Nowan.WebShop.Services.WebShopService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Nowan.WebShop.Services.WebShopService._staticInstance.get_timeout(); }
Nowan.WebShop.Services.WebShopService.set_defaultUserContext = function(value) { 
Nowan.WebShop.Services.WebShopService._staticInstance.set_defaultUserContext(value); }
Nowan.WebShop.Services.WebShopService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Nowan.WebShop.Services.WebShopService._staticInstance.get_defaultUserContext(); }
Nowan.WebShop.Services.WebShopService.set_defaultSucceededCallback = function(value) { 
 Nowan.WebShop.Services.WebShopService._staticInstance.set_defaultSucceededCallback(value); }
Nowan.WebShop.Services.WebShopService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Nowan.WebShop.Services.WebShopService._staticInstance.get_defaultSucceededCallback(); }
Nowan.WebShop.Services.WebShopService.set_defaultFailedCallback = function(value) { 
Nowan.WebShop.Services.WebShopService._staticInstance.set_defaultFailedCallback(value); }
Nowan.WebShop.Services.WebShopService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Nowan.WebShop.Services.WebShopService._staticInstance.get_defaultFailedCallback(); }
Nowan.WebShop.Services.WebShopService.set_path("/service.asmx");
Nowan.WebShop.Services.WebShopService.HelloWorld= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Nowan.WebShop.Services.WebShopService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
Nowan.WebShop.Services.WebShopService.GetProductsToSlider= function(pageName,onSuccess,onFailed,userContext) {
/// <param name="pageName" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Nowan.WebShop.Services.WebShopService._staticInstance.GetProductsToSlider(pageName,onSuccess,onFailed,userContext); }
Nowan.WebShop.Services.WebShopService.GetProductsByCategory= function(categoryId,onSuccess,onFailed,userContext) {
/// <param name="categoryId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Nowan.WebShop.Services.WebShopService._staticInstance.GetProductsByCategory(categoryId,onSuccess,onFailed,userContext); }
Nowan.WebShop.Services.WebShopService.GetMostExpensiveProducts= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Nowan.WebShop.Services.WebShopService._staticInstance.GetMostExpensiveProducts(onSuccess,onFailed,userContext); }
Nowan.WebShop.Services.WebShopService.GetRandomCategories= function(maxCount,onSuccess,onFailed,userContext) {
/// <param name="maxCount" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Nowan.WebShop.Services.WebShopService._staticInstance.GetRandomCategories(maxCount,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Nowan.WebShop.Services.ProductDescriptor) === 'undefined') {
Nowan.WebShop.Services.ProductDescriptor=gtc("Nowan.WebShop.Services.ProductDescriptor");
Nowan.WebShop.Services.ProductDescriptor.registerClass('Nowan.WebShop.Services.ProductDescriptor');
}
if (typeof(Nowan.WebShop.Services.CategoryDescriptor) === 'undefined') {
Nowan.WebShop.Services.CategoryDescriptor=gtc("Nowan.WebShop.Services.CategoryDescriptor");
Nowan.WebShop.Services.CategoryDescriptor.registerClass('Nowan.WebShop.Services.CategoryDescriptor');
}

