Type.registerNamespace('Imap.WebServices');
Imap.WebServices.BusSvc=function() {
Imap.WebServices.BusSvc.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Imap.WebServices.BusSvc.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Imap.WebServices.BusSvc._staticInstance.get_path();},
GetBusNoDetails:function(iLogId,BusNo,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="BusNo" type="String">System.String</param>
/// <param name="contextKey" 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(), 'GetBusNoDetails',false,{iLogId:iLogId,BusNo:BusNo,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusStopDetails:function(iLogId,BusStop,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="BusStop" type="String">System.String</param>
/// <param name="contextKey" 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(), 'GetBusStopDetails',false,{iLogId:iLogId,BusStop:BusStop,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetCities: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(), 'GetCities',false,{},succeededCallback,failedCallback,userContext); },
GetVehicleTypes:function(contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="contextKey" 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(), 'GetVehicleTypes',false,{contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusNos:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="contextKey" 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(), 'GetBusNos',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusStops:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="contextKey" 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(), 'GetBusStops',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetNearByBusStops:function(iLogId,latitude,longitude,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="latitude" type="String">System.String</param>
/// <param name="longitude" type="String">System.String</param>
/// <param name="contextKey" 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(), 'GetNearByBusStops',false,{iLogId:iLogId,latitude:latitude,longitude:longitude,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetRoute:function(iLogId,From,To,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="From" type="String">System.String</param>
/// <param name="To" type="String">System.String</param>
/// <param name="contextKey" 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(), 'GetRoute',false,{iLogId:iLogId,From:From,To:To,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetRouteFromPoints:function(iLogId,FirstStop,FBusNo,CStop,CBusNo,LStop,contextKey,succeededCallback, failedCallback, userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="FirstStop" type="String">System.String</param>
/// <param name="FBusNo" type="String">System.String</param>
/// <param name="CStop" type="String">System.String</param>
/// <param name="CBusNo" type="String">System.String</param>
/// <param name="LStop" type="String">System.String</param>
/// <param name="contextKey" 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(), 'GetRouteFromPoints',false,{iLogId:iLogId,FirstStop:FirstStop,FBusNo:FBusNo,CStop:CStop,CBusNo:CBusNo,LStop:LStop,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetAlsoSearchedQueries:function(iLogId,contextKey,SearchNo,SearchValue1,SearchValue2,succeededCallback, failedCallback, userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="contextKey" type="String">System.String</param>
/// <param name="SearchNo" type="String">System.String</param>
/// <param name="SearchValue1" type="String">System.String</param>
/// <param name="SearchValue2" 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(), 'GetAlsoSearchedQueries',false,{iLogId:iLogId,contextKey:contextKey,SearchNo:SearchNo,SearchValue1:SearchValue1,SearchValue2:SearchValue2},succeededCallback,failedCallback,userContext); }}
Imap.WebServices.BusSvc.registerClass('Imap.WebServices.BusSvc',Sys.Net.WebServiceProxy);
Imap.WebServices.BusSvc._staticInstance = new Imap.WebServices.BusSvc();
Imap.WebServices.BusSvc.set_path = function(value) {
Imap.WebServices.BusSvc._staticInstance.set_path(value); }
Imap.WebServices.BusSvc.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Imap.WebServices.BusSvc._staticInstance.get_path();}
Imap.WebServices.BusSvc.set_timeout = function(value) {
Imap.WebServices.BusSvc._staticInstance.set_timeout(value); }
Imap.WebServices.BusSvc.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Imap.WebServices.BusSvc._staticInstance.get_timeout(); }
Imap.WebServices.BusSvc.set_defaultUserContext = function(value) { 
Imap.WebServices.BusSvc._staticInstance.set_defaultUserContext(value); }
Imap.WebServices.BusSvc.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Imap.WebServices.BusSvc._staticInstance.get_defaultUserContext(); }
Imap.WebServices.BusSvc.set_defaultSucceededCallback = function(value) { 
 Imap.WebServices.BusSvc._staticInstance.set_defaultSucceededCallback(value); }
Imap.WebServices.BusSvc.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Imap.WebServices.BusSvc._staticInstance.get_defaultSucceededCallback(); }
Imap.WebServices.BusSvc.set_defaultFailedCallback = function(value) { 
Imap.WebServices.BusSvc._staticInstance.set_defaultFailedCallback(value); }
Imap.WebServices.BusSvc.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Imap.WebServices.BusSvc._staticInstance.get_defaultFailedCallback(); }
Imap.WebServices.BusSvc.set_enableJsonp = function(value) { Imap.WebServices.BusSvc._staticInstance.set_enableJsonp(value); }
Imap.WebServices.BusSvc.get_enableJsonp = function() { 
/// <value type="Boolean">Specifies whether the service supports JSONP for cross domain calling.</value>
return Imap.WebServices.BusSvc._staticInstance.get_enableJsonp(); }
Imap.WebServices.BusSvc.set_jsonpCallbackParameter = function(value) { Imap.WebServices.BusSvc._staticInstance.set_jsonpCallbackParameter(value); }
Imap.WebServices.BusSvc.get_jsonpCallbackParameter = function() { 
/// <value type="String">Specifies the parameter name that contains the callback function name for a JSONP request.</value>
return Imap.WebServices.BusSvc._staticInstance.get_jsonpCallbackParameter(); }
Imap.WebServices.BusSvc.set_path("/WebServices/BusSvc.asmx");
Imap.WebServices.BusSvc.GetBusNoDetails= function(iLogId,BusNo,contextKey,onSuccess,onFailed,userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="BusNo" type="String">System.String</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetBusNoDetails(iLogId,BusNo,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusStopDetails= function(iLogId,BusStop,contextKey,onSuccess,onFailed,userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="BusStop" type="String">System.String</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetBusStopDetails(iLogId,BusStop,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetCities= 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>
Imap.WebServices.BusSvc._staticInstance.GetCities(onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetVehicleTypes= function(contextKey,onSuccess,onFailed,userContext) {
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetVehicleTypes(contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusNos= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetBusNos(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusStops= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {
/// <param name="prefixText" type="String">System.String</param>
/// <param name="count" type="Number">System.Int32</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetBusStops(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetNearByBusStops= function(iLogId,latitude,longitude,contextKey,onSuccess,onFailed,userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="latitude" type="String">System.String</param>
/// <param name="longitude" type="String">System.String</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetNearByBusStops(iLogId,latitude,longitude,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetRoute= function(iLogId,From,To,contextKey,onSuccess,onFailed,userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="From" type="String">System.String</param>
/// <param name="To" type="String">System.String</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetRoute(iLogId,From,To,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetRouteFromPoints= function(iLogId,FirstStop,FBusNo,CStop,CBusNo,LStop,contextKey,onSuccess,onFailed,userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="FirstStop" type="String">System.String</param>
/// <param name="FBusNo" type="String">System.String</param>
/// <param name="CStop" type="String">System.String</param>
/// <param name="CBusNo" type="String">System.String</param>
/// <param name="LStop" type="String">System.String</param>
/// <param name="contextKey" 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>
Imap.WebServices.BusSvc._staticInstance.GetRouteFromPoints(iLogId,FirstStop,FBusNo,CStop,CBusNo,LStop,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetAlsoSearchedQueries= function(iLogId,contextKey,SearchNo,SearchValue1,SearchValue2,onSuccess,onFailed,userContext) {
/// <param name="iLogId" type="Number">System.Int32</param>
/// <param name="contextKey" type="String">System.String</param>
/// <param name="SearchNo" type="String">System.String</param>
/// <param name="SearchValue1" type="String">System.String</param>
/// <param name="SearchValue2" 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>
Imap.WebServices.BusSvc._staticInstance.GetAlsoSearchedQueries(iLogId,contextKey,SearchNo,SearchValue1,SearchValue2,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('maps.BusNames');
if (typeof(maps.BusNames.BusDetails) === 'undefined') {
maps.BusNames.BusDetails=gtc("maps.BusNames.BusDetails");
maps.BusNames.BusDetails.registerClass('maps.BusNames.BusDetails');
}
if (typeof(maps.BusNames.BusCollection) === 'undefined') {
maps.BusNames.BusCollection=gtc("maps.BusNames.BusCollection");
maps.BusNames.BusCollection.registerClass('maps.BusNames.BusCollection');
}
if (typeof(maps.BusNames.TopQueryCollection) === 'undefined') {
maps.BusNames.TopQueryCollection=gtc("maps.BusNames.TopQueryCollection");
maps.BusNames.TopQueryCollection.registerClass('maps.BusNames.TopQueryCollection');
}
