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={
GetCompletionList2:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetCompletionList2',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetBusNoDetails:function(iLogId,BusNo,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetBusNoDetails',false,{iLogId:iLogId,BusNo:BusNo,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusStopDetails:function(iLogId,BusStop,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetBusStopDetails',false,{iLogId:iLogId,BusStop:BusStop,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusNos:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetBusNos',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetBusStops:function(prefixText,count,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetBusStops',false,{prefixText:prefixText,count:count,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetNearByBusStops:function(iLogId,latitude,longitude,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetNearByBusStops',false,{iLogId:iLogId,latitude:latitude,longitude:longitude,contextKey:contextKey},succeededCallback,failedCallback,userContext); },
GetRoute:function(iLogId,From,To,contextKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Imap.WebServices.BusSvc.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) {
return this._invoke(Imap.WebServices.BusSvc.get_path(), 'GetRouteFromPoints',false,{iLogId:iLogId,FirstStop:FirstStop,FBusNo:FBusNo,CStop:CStop,CBusNo:CBusNo,LStop:LStop,contextKey:contextKey},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) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Imap.WebServices.BusSvc._staticInstance._path = value; }
Imap.WebServices.BusSvc.get_path = function() { return Imap.WebServices.BusSvc._staticInstance._path; }
Imap.WebServices.BusSvc.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); }
Imap.WebServices.BusSvc._staticInstance._timeout = value; }
Imap.WebServices.BusSvc.get_timeout = function() { 
return Imap.WebServices.BusSvc._staticInstance._timeout; }
Imap.WebServices.BusSvc.set_defaultUserContext = function(value) { 
Imap.WebServices.BusSvc._staticInstance._userContext = value; }
Imap.WebServices.BusSvc.get_defaultUserContext = function() { 
return Imap.WebServices.BusSvc._staticInstance._userContext; }
Imap.WebServices.BusSvc.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Imap.WebServices.BusSvc._staticInstance._succeeded = value; }
Imap.WebServices.BusSvc.get_defaultSucceededCallback = function() { 
return Imap.WebServices.BusSvc._staticInstance._succeeded; }
Imap.WebServices.BusSvc.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Imap.WebServices.BusSvc._staticInstance._failed = value; }
Imap.WebServices.BusSvc.get_defaultFailedCallback = function() { 
return Imap.WebServices.BusSvc._staticInstance._failed; }
Imap.WebServices.BusSvc.set_path("/WebServices/BusSvc.asmx");
Imap.WebServices.BusSvc.GetCompletionList2= function(prefixText,count,onSuccess,onFailed,userContext) {Imap.WebServices.BusSvc._staticInstance.GetCompletionList2(prefixText,count,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusNoDetails= function(iLogId,BusNo,contextKey,onSuccess,onFailed,userContext) {Imap.WebServices.BusSvc._staticInstance.GetBusNoDetails(iLogId,BusNo,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusStopDetails= function(iLogId,BusStop,contextKey,onSuccess,onFailed,userContext) {Imap.WebServices.BusSvc._staticInstance.GetBusStopDetails(iLogId,BusStop,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusNos= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Imap.WebServices.BusSvc._staticInstance.GetBusNos(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetBusStops= function(prefixText,count,contextKey,onSuccess,onFailed,userContext) {Imap.WebServices.BusSvc._staticInstance.GetBusStops(prefixText,count,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetNearByBusStops= function(iLogId,latitude,longitude,contextKey,onSuccess,onFailed,userContext) {Imap.WebServices.BusSvc._staticInstance.GetNearByBusStops(iLogId,latitude,longitude,contextKey,onSuccess,onFailed,userContext); }
Imap.WebServices.BusSvc.GetRoute= function(iLogId,From,To,contextKey,onSuccess,onFailed,userContext) {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) {Imap.WebServices.BusSvc._staticInstance.GetRouteFromPoints(iLogId,FirstStop,FBusNo,CStop,CBusNo,LStop,contextKey,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');
}
