Type.registerNamespace('PL.Techbaza.WebServices');
PL.Techbaza.WebServices.WebCategoriesFiltersService=function() {
PL.Techbaza.WebServices.WebCategoriesFiltersService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PL.Techbaza.WebServices.WebCategoriesFiltersService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.get_path();},
GetSubCategories:function(categoryPath,limitationMode,succeededCallback, failedCallback, userContext) {
/// <param name="categoryPath" type="String">System.String</param>
/// <param name="limitationMode" type="PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode">PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode</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(), 'GetSubCategories',false,{categoryPath:categoryPath,limitationMode:limitationMode},succeededCallback,failedCallback,userContext); },
GetFilters:function(categoryPath,limitation,limitationMode,succeededCallback, failedCallback, userContext) {
/// <param name="categoryPath" type="String">System.String</param>
/// <param name="limitation" type="String">System.String</param>
/// <param name="limitationMode" type="PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode">PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode</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(), 'GetFilters',false,{categoryPath:categoryPath,limitation:limitation,limitationMode:limitationMode},succeededCallback,failedCallback,userContext); },
GetFiltersValuesProductsCounts:function(attributeId,categoryPath,filtersValues,limitation,limitationMode,succeededCallback, failedCallback, userContext) {
/// <param name="attributeId" type="String">System.String</param>
/// <param name="categoryPath" type="String">System.String</param>
/// <param name="filtersValues" type="Array">System.Collections.Generic.List`1[[PL.Techbaza.Filtering.Entities.WebFilterValueState, PL.Techbaza.Filtering, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]</param>
/// <param name="limitation" type="String">System.String</param>
/// <param name="limitationMode" type="PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode">PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode</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(), 'GetFiltersValuesProductsCounts',false,{attributeId:attributeId,categoryPath:categoryPath,filtersValues:filtersValues,limitation:limitation,limitationMode:limitationMode},succeededCallback,failedCallback,userContext); }}
PL.Techbaza.WebServices.WebCategoriesFiltersService.registerClass('PL.Techbaza.WebServices.WebCategoriesFiltersService',Sys.Net.WebServiceProxy);
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance = new PL.Techbaza.WebServices.WebCategoriesFiltersService();
PL.Techbaza.WebServices.WebCategoriesFiltersService.set_path = function(value) {
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.set_path(value); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.get_path();}
PL.Techbaza.WebServices.WebCategoriesFiltersService.set_timeout = function(value) {
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.set_timeout(value); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.get_timeout(); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.set_defaultUserContext = function(value) { 
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.set_defaultUserContext(value); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.get_defaultUserContext(); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.set_defaultSucceededCallback = function(value) { 
 PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.set_defaultSucceededCallback(value); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.get_defaultSucceededCallback(); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.set_defaultFailedCallback = function(value) { 
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.set_defaultFailedCallback(value); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.get_defaultFailedCallback(); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.set_path("/WebServices/WebCategoriesFiltersService.svc");
PL.Techbaza.WebServices.WebCategoriesFiltersService.GetSubCategories= function(categoryPath,limitationMode,onSuccess,onFailed,userContext) {
/// <param name="categoryPath" type="String">System.String</param>
/// <param name="limitationMode" type="PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode">PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode</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>
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.GetSubCategories(categoryPath,limitationMode,onSuccess,onFailed,userContext); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.GetFilters= function(categoryPath,limitation,limitationMode,onSuccess,onFailed,userContext) {
/// <param name="categoryPath" type="String">System.String</param>
/// <param name="limitation" type="String">System.String</param>
/// <param name="limitationMode" type="PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode">PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode</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>
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.GetFilters(categoryPath,limitation,limitationMode,onSuccess,onFailed,userContext); }
PL.Techbaza.WebServices.WebCategoriesFiltersService.GetFiltersValuesProductsCounts= function(attributeId,categoryPath,filtersValues,limitation,limitationMode,onSuccess,onFailed,userContext) {
/// <param name="attributeId" type="String">System.String</param>
/// <param name="categoryPath" type="String">System.String</param>
/// <param name="filtersValues" type="Array">System.Collections.Generic.List`1[[PL.Techbaza.Filtering.Entities.WebFilterValueState, PL.Techbaza.Filtering, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]</param>
/// <param name="limitation" type="String">System.String</param>
/// <param name="limitationMode" type="PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode">PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode</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>
PL.Techbaza.WebServices.WebCategoriesFiltersService._staticInstance.GetFiltersValuesProductsCounts(attributeId,categoryPath,filtersValues,limitation,limitationMode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(C) === 'undefined') {
var C=gtc("C");
C.registerClass('C');
}
if (typeof(F) === 'undefined') {
var F=gtc("F");
F.registerClass('F');
}
if (typeof(FV) === 'undefined') {
var FV=gtc("FV");
FV.registerClass('FV');
}
Type.registerNamespace('PL.Techbaza.Filtering.Entities');
if (typeof(PL.Techbaza.Filtering.Entities.WebFilterValueState) === 'undefined') {
PL.Techbaza.Filtering.Entities.WebFilterValueState=gtc("WebFilterValueState:http://schemas.datacontract.org/2004/07/PL.Techbaza.Filtering.Entities");
PL.Techbaza.Filtering.Entities.WebFilterValueState.registerClass('PL.Techbaza.Filtering.Entities.WebFilterValueState');
}
if (typeof(FA) === 'undefined') {
var FA=gtc("FA");
FA.registerClass('FA');
}
if (typeof(PC) === 'undefined') {
var PC=gtc("PC");
PC.registerClass('PC');
}
Type.registerNamespace('PL.Techbaza.Filtering.Controls');
if (typeof(PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode) === 'undefined') {
PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode = function() { throw Error.invalidOperation(); }
PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode.prototype = {None: 0,Search: 1,Category: 2,Producer: 3,Clipboard: 4,Favorites: 5,Guides: 6,Standard: 7}
PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode.registerEnum('PL.Techbaza.Filtering.Controls.WebCategoriesFiltersControlLimitationMode', true);
}
if (typeof(PL.Techbaza.Filtering.Entities.WebFilterTypes) === 'undefined') {
PL.Techbaza.Filtering.Entities.WebFilterTypes = function() { throw Error.invalidOperation(); }
PL.Techbaza.Filtering.Entities.WebFilterTypes.prototype = {Checkbox: 1,Combobox: 2,NumericalRange: 3,NumericalValue: 5,ListboxSingleSelection: 6,ListboxMultipleSelection: 7,Axis: 8,RangeAxis: 9,RadioButtons: 10,CheckboxList: 11}
PL.Techbaza.Filtering.Entities.WebFilterTypes.registerEnum('PL.Techbaza.Filtering.Entities.WebFilterTypes', true);
}

