Type.registerNamespace('Sunbeam.Web.Pages.Browse');
Sunbeam.Web.Pages.Browse.ViewService=function() {
Sunbeam.Web.Pages.Browse.ViewService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Sunbeam.Web.Pages.Browse.ViewService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Sunbeam.Web.Pages.Browse.ViewService._staticInstance.get_path();},
GetSubCategoriesByLocation:function(tagId,locationId,succeededCallback, failedCallback, userContext) {
/// <param name="tagId" type="Number">System.Int32</param>
/// <param name="locationId" 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(), 'GetSubCategoriesByLocation',false,{tagId:tagId,locationId:locationId},succeededCallback,failedCallback,userContext); },
GetLocationCategories:function(locationId,succeededCallback, failedCallback, userContext) {
/// <param name="locationId" 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(), 'GetLocationCategories',false,{locationId:locationId},succeededCallback,failedCallback,userContext); },
GetProductListByCategory:function(categoryId,succeededCallback, failedCallback, userContext) {
/// <param name="categoryId" 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(), 'GetProductListByCategory',false,{categoryId:categoryId},succeededCallback,failedCallback,userContext); },
GetSubCategoryListByCategory:function(categoryId,selectedSubCategoryId,succeededCallback, failedCallback, userContext) {
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="selectedSubCategoryId" 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(), 'GetSubCategoryListByCategory',false,{categoryId:categoryId,selectedSubCategoryId:selectedSubCategoryId},succeededCallback,failedCallback,userContext); },
GetSubCategoryViewByCategory:function(categoryId,parentCategoryId,showAllProducts,succeededCallback, failedCallback, userContext) {
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="parentCategoryId" type="Number">System.Int32</param>
/// <param name="showAllProducts" 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(), 'GetSubCategoryViewByCategory',false,{categoryId:categoryId,parentCategoryId:parentCategoryId,showAllProducts:showAllProducts},succeededCallback,failedCallback,userContext); },
GetAllCategories: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(), 'GetAllCategories',false,{},succeededCallback,failedCallback,userContext); },
GetProductListByAlphabet:function(letter,succeededCallback, failedCallback, userContext) {
/// <param name="letter" 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(), 'GetProductListByAlphabet',false,{letter:letter},succeededCallback,failedCallback,userContext); },
GetProductListBySearch:function(searchTerm,succeededCallback, failedCallback, userContext) {
/// <param name="searchTerm" 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(), 'GetProductListBySearch',false,{searchTerm:searchTerm},succeededCallback,failedCallback,userContext); }}
Sunbeam.Web.Pages.Browse.ViewService.registerClass('Sunbeam.Web.Pages.Browse.ViewService',Sys.Net.WebServiceProxy);
Sunbeam.Web.Pages.Browse.ViewService._staticInstance = new Sunbeam.Web.Pages.Browse.ViewService();
Sunbeam.Web.Pages.Browse.ViewService.set_path = function(value) {
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.set_path(value); }
Sunbeam.Web.Pages.Browse.ViewService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Sunbeam.Web.Pages.Browse.ViewService._staticInstance.get_path();}
Sunbeam.Web.Pages.Browse.ViewService.set_timeout = function(value) {
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.set_timeout(value); }
Sunbeam.Web.Pages.Browse.ViewService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Sunbeam.Web.Pages.Browse.ViewService._staticInstance.get_timeout(); }
Sunbeam.Web.Pages.Browse.ViewService.set_defaultUserContext = function(value) { 
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.set_defaultUserContext(value); }
Sunbeam.Web.Pages.Browse.ViewService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Sunbeam.Web.Pages.Browse.ViewService._staticInstance.get_defaultUserContext(); }
Sunbeam.Web.Pages.Browse.ViewService.set_defaultSucceededCallback = function(value) { 
 Sunbeam.Web.Pages.Browse.ViewService._staticInstance.set_defaultSucceededCallback(value); }
Sunbeam.Web.Pages.Browse.ViewService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Sunbeam.Web.Pages.Browse.ViewService._staticInstance.get_defaultSucceededCallback(); }
Sunbeam.Web.Pages.Browse.ViewService.set_defaultFailedCallback = function(value) { 
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.set_defaultFailedCallback(value); }
Sunbeam.Web.Pages.Browse.ViewService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Sunbeam.Web.Pages.Browse.ViewService._staticInstance.get_defaultFailedCallback(); }
Sunbeam.Web.Pages.Browse.ViewService.set_path("/Pages/Browse/ViewService.asmx");
Sunbeam.Web.Pages.Browse.ViewService.GetSubCategoriesByLocation= function(tagId,locationId,onSuccess,onFailed,userContext) {
/// <param name="tagId" type="Number">System.Int32</param>
/// <param name="locationId" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetSubCategoriesByLocation(tagId,locationId,onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetLocationCategories= function(locationId,onSuccess,onFailed,userContext) {
/// <param name="locationId" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetLocationCategories(locationId,onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetProductListByCategory= function(categoryId,onSuccess,onFailed,userContext) {
/// <param name="categoryId" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetProductListByCategory(categoryId,onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetSubCategoryListByCategory= function(categoryId,selectedSubCategoryId,onSuccess,onFailed,userContext) {
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="selectedSubCategoryId" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetSubCategoryListByCategory(categoryId,selectedSubCategoryId,onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetSubCategoryViewByCategory= function(categoryId,parentCategoryId,showAllProducts,onSuccess,onFailed,userContext) {
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="parentCategoryId" type="Number">System.Int32</param>
/// <param name="showAllProducts" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetSubCategoryViewByCategory(categoryId,parentCategoryId,showAllProducts,onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetAllCategories= 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetAllCategories(onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetProductListByAlphabet= function(letter,onSuccess,onFailed,userContext) {
/// <param name="letter" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetProductListByAlphabet(letter,onSuccess,onFailed,userContext); }
Sunbeam.Web.Pages.Browse.ViewService.GetProductListBySearch= function(searchTerm,onSuccess,onFailed,userContext) {
/// <param name="searchTerm" 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>
Sunbeam.Web.Pages.Browse.ViewService._staticInstance.GetProductListBySearch(searchTerm,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Sunbeam.Web.Pages.Browse.ViewItem) === 'undefined') {
Sunbeam.Web.Pages.Browse.ViewItem=gtc("Sunbeam.Web.Pages.Browse.ViewItem");
Sunbeam.Web.Pages.Browse.ViewItem.registerClass('Sunbeam.Web.Pages.Browse.ViewItem');
}
