Type.registerNamespace('Motel6');
Motel6.SearchSvc=function() {
Motel6.SearchSvc.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Motel6.SearchSvc.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Motel6.SearchSvc._staticInstance.get_path();},
GetCityList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCityList_CRS:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityList_CRS',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCityList_SQL:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityList_SQL',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCityList_SQL_XML:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityList_SQL_XML',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetPOIList:function(prefixText,count,contextkey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPOIList',false,{prefixText:prefixText,count:count,contextkey:contextkey},succeededCallback,failedCallback,userContext); },
GetAttractionList:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAttractionList',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetAirportList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAirportList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetCityAirportList:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityAirportList',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetNearbyPOI:function(latitude,longitude,radius,POICat,POIName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearbyPOI',false,{latitude:latitude,longitude:longitude,radius:radius,POICat:POICat,POIName:POIName},succeededCallback,failedCallback,userContext); },
GetProperty:function(id,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetProperty',false,{id:id},succeededCallback,failedCallback,userContext); },
GetNearbyProperties:function(latitude,longitude,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearbyProperties',false,{latitude:latitude,longitude:longitude,radius:radius},succeededCallback,failedCallback,userContext); },
GetPropertiesNearRoute:function(latitude1,longitude1,latitude2,longitude2,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPropertiesNearRoute',false,{latitude1:latitude1,longitude1:longitude1,latitude2:latitude2,longitude2:longitude2,radius:radius},succeededCallback,failedCallback,userContext); },
GetNearbyPOI2:function(latitude,longitude,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearbyPOI2',false,{latitude:latitude,longitude:longitude,radius:radius},succeededCallback,failedCallback,userContext); },
GetNearbyPOI_SQL:function(latitude,longitude,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearbyPOI_SQL',false,{latitude:latitude,longitude:longitude,radius:radius},succeededCallback,failedCallback,userContext); },
GetNearbyPOI_SQL_Arr:function(latitude,longitude,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNearbyPOI_SQL_Arr',false,{latitude:latitude,longitude:longitude,radius:radius},succeededCallback,failedCallback,userContext); }}
Motel6.SearchSvc.registerClass('Motel6.SearchSvc',Sys.Net.WebServiceProxy);
Motel6.SearchSvc._staticInstance = new Motel6.SearchSvc();
Motel6.SearchSvc.set_path = function(value) { Motel6.SearchSvc._staticInstance.set_path(value); }
Motel6.SearchSvc.get_path = function() { return Motel6.SearchSvc._staticInstance.get_path(); }
Motel6.SearchSvc.set_timeout = function(value) { Motel6.SearchSvc._staticInstance.set_timeout(value); }
Motel6.SearchSvc.get_timeout = function() { return Motel6.SearchSvc._staticInstance.get_timeout(); }
Motel6.SearchSvc.set_defaultUserContext = function(value) { Motel6.SearchSvc._staticInstance.set_defaultUserContext(value); }
Motel6.SearchSvc.get_defaultUserContext = function() { return Motel6.SearchSvc._staticInstance.get_defaultUserContext(); }
Motel6.SearchSvc.set_defaultSucceededCallback = function(value) { Motel6.SearchSvc._staticInstance.set_defaultSucceededCallback(value); }
Motel6.SearchSvc.get_defaultSucceededCallback = function() { return Motel6.SearchSvc._staticInstance.get_defaultSucceededCallback(); }
Motel6.SearchSvc.set_defaultFailedCallback = function(value) { Motel6.SearchSvc._staticInstance.set_defaultFailedCallback(value); }
Motel6.SearchSvc.get_defaultFailedCallback = function() { return Motel6.SearchSvc._staticInstance.get_defaultFailedCallback(); }
Motel6.SearchSvc.set_path("/code/svc/SearchSvc.asmx");
Motel6.SearchSvc.GetCityList= function(prefixText,count,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetCityList(prefixText,count,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetCityList_CRS= function(prefixText,count,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetCityList_CRS(prefixText,count,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetCityList_SQL= function(prefixText,count,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetCityList_SQL(prefixText,count,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetCityList_SQL_XML= function(prefixText,count,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetCityList_SQL_XML(prefixText,count,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetPOIList= function(prefixText,count,contextkey,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetPOIList(prefixText,count,contextkey,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetAttractionList= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetAttractionList(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetAirportList= function(prefixText,count,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetAirportList(prefixText,count,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetCityAirportList= function(prefixText,count,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetCityAirportList(prefixText,count,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetNearbyPOI= function(latitude,longitude,radius,POICat,POIName,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetNearbyPOI(latitude,longitude,radius,POICat,POIName,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetProperty= function(id,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetProperty(id,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetNearbyProperties= function(latitude,longitude,radius,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetNearbyProperties(latitude,longitude,radius,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetPropertiesNearRoute= function(latitude1,longitude1,latitude2,longitude2,radius,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetPropertiesNearRoute(latitude1,longitude1,latitude2,longitude2,radius,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetNearbyPOI2= function(latitude,longitude,radius,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetNearbyPOI2(latitude,longitude,radius,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetNearbyPOI_SQL= function(latitude,longitude,radius,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetNearbyPOI_SQL(latitude,longitude,radius,onSuccess,onFailed,userContext); }
Motel6.SearchSvc.GetNearbyPOI_SQL_Arr= function(latitude,longitude,radius,onSuccess,onFailed,userContext) {Motel6.SearchSvc._staticInstance.GetNearbyPOI_SQL_Arr(latitude,longitude,radius,onSuccess,onFailed,userContext); }
