Type.registerNamespace('RichmondBarsAndRestaurants');
RichmondBarsAndRestaurants.SearchPhrasesService=function() {
RichmondBarsAndRestaurants.SearchPhrasesService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RichmondBarsAndRestaurants.SearchPhrasesService.prototype={
GetSearchPhrases:function(SearchWordsString,SearchID,succeededCallback, failedCallback, userContext) {
return this._invoke(RichmondBarsAndRestaurants.SearchPhrasesService.get_path(), 'GetSearchPhrases',false,{SearchWordsString:SearchWordsString,SearchID:SearchID},succeededCallback,failedCallback,userContext); }}
RichmondBarsAndRestaurants.SearchPhrasesService.registerClass('RichmondBarsAndRestaurants.SearchPhrasesService',Sys.Net.WebServiceProxy);
RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance = new RichmondBarsAndRestaurants.SearchPhrasesService();
RichmondBarsAndRestaurants.SearchPhrasesService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._path = value; }
RichmondBarsAndRestaurants.SearchPhrasesService.get_path = function() { return RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._path; }
RichmondBarsAndRestaurants.SearchPhrasesService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._timeout = value; }
RichmondBarsAndRestaurants.SearchPhrasesService.get_timeout = function() { 
return RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._timeout; }
RichmondBarsAndRestaurants.SearchPhrasesService.set_defaultUserContext = function(value) { 
RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._userContext = value; }
RichmondBarsAndRestaurants.SearchPhrasesService.get_defaultUserContext = function() { 
return RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._userContext; }
RichmondBarsAndRestaurants.SearchPhrasesService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._succeeded = value; }
RichmondBarsAndRestaurants.SearchPhrasesService.get_defaultSucceededCallback = function() { 
return RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._succeeded; }
RichmondBarsAndRestaurants.SearchPhrasesService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._failed = value; }
RichmondBarsAndRestaurants.SearchPhrasesService.get_defaultFailedCallback = function() { 
return RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance._failed; }
RichmondBarsAndRestaurants.SearchPhrasesService.set_path("/BigEasyOut/SearchPhrases/SearchPhrasesService.asmx");
RichmondBarsAndRestaurants.SearchPhrasesService.GetSearchPhrases= function(SearchWordsString,SearchID,onSuccess,onFailed,userContext) {RichmondBarsAndRestaurants.SearchPhrasesService._staticInstance.GetSearchPhrases(SearchWordsString,SearchID,onSuccess,onFailed,userContext); }
