Type.registerNamespace('StoreFrontService');
StoreFrontService.SearchTermSuggest=function() {
StoreFrontService.SearchTermSuggest.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
StoreFrontService.SearchTermSuggest.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return StoreFrontService.SearchTermSuggest._staticInstance.get_path();},
Suggest: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(), 'Suggest',false,{searchTerm:searchTerm},succeededCallback,failedCallback,userContext); }}
StoreFrontService.SearchTermSuggest.registerClass('StoreFrontService.SearchTermSuggest',Sys.Net.WebServiceProxy);
StoreFrontService.SearchTermSuggest._staticInstance = new StoreFrontService.SearchTermSuggest();
StoreFrontService.SearchTermSuggest.set_path = function(value) {
StoreFrontService.SearchTermSuggest._staticInstance.set_path(value); }
StoreFrontService.SearchTermSuggest.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_path();}
StoreFrontService.SearchTermSuggest.set_timeout = function(value) {
StoreFrontService.SearchTermSuggest._staticInstance.set_timeout(value); }
StoreFrontService.SearchTermSuggest.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_timeout(); }
StoreFrontService.SearchTermSuggest.set_defaultUserContext = function(value) { 
StoreFrontService.SearchTermSuggest._staticInstance.set_defaultUserContext(value); }
StoreFrontService.SearchTermSuggest.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_defaultUserContext(); }
StoreFrontService.SearchTermSuggest.set_defaultSucceededCallback = function(value) { 
 StoreFrontService.SearchTermSuggest._staticInstance.set_defaultSucceededCallback(value); }
StoreFrontService.SearchTermSuggest.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_defaultSucceededCallback(); }
StoreFrontService.SearchTermSuggest.set_defaultFailedCallback = function(value) { 
StoreFrontService.SearchTermSuggest._staticInstance.set_defaultFailedCallback(value); }
StoreFrontService.SearchTermSuggest.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_defaultFailedCallback(); }
StoreFrontService.SearchTermSuggest.set_enableJsonp = function(value) { StoreFrontService.SearchTermSuggest._staticInstance.set_enableJsonp(value); }
StoreFrontService.SearchTermSuggest.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_enableJsonp(); }
StoreFrontService.SearchTermSuggest.set_jsonpCallbackParameter = function(value) { StoreFrontService.SearchTermSuggest._staticInstance.set_jsonpCallbackParameter(value); }
StoreFrontService.SearchTermSuggest.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return StoreFrontService.SearchTermSuggest._staticInstance.get_jsonpCallbackParameter(); }
StoreFrontService.SearchTermSuggest.set_path("http://www.beegool.com/Services/SearchTermSuggest.svc");
StoreFrontService.SearchTermSuggest.Suggest= 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>
StoreFrontService.SearchTermSuggest._staticInstance.Suggest(searchTerm,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('MarketYard.Store.Services');
if (typeof(MarketYard.Store.Services.SearchTermSuggest) === "undefined") {
   MarketYard.Store.Services.SearchTermSuggest = {};
}
if (typeof(MarketYard.Store.Services.SearchTermSuggest.Suggestions) === 'undefined') {
MarketYard.Store.Services.SearchTermSuggest.Suggestions=gtc("SearchTermSuggest.Suggestions:http://schemas.datacontract.org/2004/07/MarketYard.Store.Services");
MarketYard.Store.Services.SearchTermSuggest.Suggestions.registerClass('MarketYard.Store.Services.SearchTermSuggest.Suggestions');
}

