Type.registerNamespace('PBrand');
PBrand.CategoryService=function() {
PBrand.CategoryService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
PBrand.CategoryService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return PBrand.CategoryService._staticInstance.get_path();},
GetCategoryList:function(iParentCategoryID,succeededCallback, failedCallback, userContext) {
/// <param name="iParentCategoryID" 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(), 'GetCategoryList',true,{iParentCategoryID:iParentCategoryID},succeededCallback,failedCallback,userContext); },
GetCategoryList2:function(iParentCategoryID,WithSubCategories,succeededCallback, failedCallback, userContext) {
/// <param name="iParentCategoryID" type="Number">System.Int32</param>
/// <param name="WithSubCategories" type="Boolean">System.Boolean</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(), 'GetCategoryList2',true,{iParentCategoryID:iParentCategoryID,WithSubCategories:WithSubCategories},succeededCallback,failedCallback,userContext); },
GetCategoryDetails:function(iCategoryID,succeededCallback, failedCallback, userContext) {
/// <param name="iCategoryID" 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(), 'GetCategoryDetails',true,{iCategoryID:iCategoryID},succeededCallback,failedCallback,userContext); },
GetProductsByCategoryID:function(iCategoryID,sOrderBy,succeededCallback, failedCallback, userContext) {
/// <param name="iCategoryID" type="Number">System.Int32</param>
/// <param name="sOrderBy" 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(), 'GetProductsByCategoryID',true,{iCategoryID:iCategoryID,sOrderBy:sOrderBy},succeededCallback,failedCallback,userContext); }}
PBrand.CategoryService.registerClass('PBrand.CategoryService',Sys.Net.WebServiceProxy);
PBrand.CategoryService._staticInstance = new PBrand.CategoryService();
PBrand.CategoryService.set_path = function(value) {
PBrand.CategoryService._staticInstance.set_path(value); }
PBrand.CategoryService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return PBrand.CategoryService._staticInstance.get_path();}
PBrand.CategoryService.set_timeout = function(value) {
PBrand.CategoryService._staticInstance.set_timeout(value); }
PBrand.CategoryService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return PBrand.CategoryService._staticInstance.get_timeout(); }
PBrand.CategoryService.set_defaultUserContext = function(value) { 
PBrand.CategoryService._staticInstance.set_defaultUserContext(value); }
PBrand.CategoryService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return PBrand.CategoryService._staticInstance.get_defaultUserContext(); }
PBrand.CategoryService.set_defaultSucceededCallback = function(value) { 
 PBrand.CategoryService._staticInstance.set_defaultSucceededCallback(value); }
PBrand.CategoryService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return PBrand.CategoryService._staticInstance.get_defaultSucceededCallback(); }
PBrand.CategoryService.set_defaultFailedCallback = function(value) { 
PBrand.CategoryService._staticInstance.set_defaultFailedCallback(value); }
PBrand.CategoryService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return PBrand.CategoryService._staticInstance.get_defaultFailedCallback(); }
PBrand.CategoryService.set_path("/Services/CategoryService.svc");
PBrand.CategoryService.GetCategoryList= function(iParentCategoryID,onSuccess,onFailed,userContext) {
/// <param name="iParentCategoryID" 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>
PBrand.CategoryService._staticInstance.GetCategoryList(iParentCategoryID,onSuccess,onFailed,userContext); }
PBrand.CategoryService.GetCategoryList2= function(iParentCategoryID,WithSubCategories,onSuccess,onFailed,userContext) {
/// <param name="iParentCategoryID" type="Number">System.Int32</param>
/// <param name="WithSubCategories" type="Boolean">System.Boolean</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>
PBrand.CategoryService._staticInstance.GetCategoryList2(iParentCategoryID,WithSubCategories,onSuccess,onFailed,userContext); }
PBrand.CategoryService.GetCategoryDetails= function(iCategoryID,onSuccess,onFailed,userContext) {
/// <param name="iCategoryID" 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>
PBrand.CategoryService._staticInstance.GetCategoryDetails(iCategoryID,onSuccess,onFailed,userContext); }
PBrand.CategoryService.GetProductsByCategoryID= function(iCategoryID,sOrderBy,onSuccess,onFailed,userContext) {
/// <param name="iCategoryID" type="Number">System.Int32</param>
/// <param name="sOrderBy" 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>
PBrand.CategoryService._staticInstance.GetProductsByCategoryID(iCategoryID,sOrderBy,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('www.w3.org._2001.XMLSchema');
if (typeof(www.w3.org._2001.XMLSchema.int) === 'undefined') {
www.w3.org._2001.XMLSchema.int=gtc("int:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.int.registerClass('www.w3.org._2001.XMLSchema.int');
}
if (typeof(Category) === 'undefined') {
var Category=gtc("Category:http://schemas.datacontract.org/2004/07/");
Category.registerClass('Category');
}
if (typeof(Product) === 'undefined') {
var Product=gtc("Product:http://schemas.datacontract.org/2004/07/");
Product.registerClass('Product');
}

