Type.registerNamespace('LiveMapDemo');
LiveMapDemo.MapDataService=function() {
LiveMapDemo.MapDataService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
LiveMapDemo.MapDataService.prototype={
GetStopsForLevel:function(level,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveMapDemo.MapDataService.get_path(), 'GetStopsForLevel',false,{level:level},succeededCallback,failedCallback,userContext); },
GetStop:function(stopRef,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveMapDemo.MapDataService.get_path(), 'GetStop',false,{stopRef:stopRef},succeededCallback,failedCallback,userContext); },
GetSignData:function(stopRef,count,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveMapDemo.MapDataService.get_path(), 'GetSignData',false,{stopRef:stopRef,count:count},succeededCallback,failedCallback,userContext); },
GetVehicleData:function(vehicleID,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveMapDemo.MapDataService.get_path(), 'GetVehicleData',false,{vehicleID:vehicleID},succeededCallback,failedCallback,userContext); },
GetServiceVehicleData:function(serviceID,succeededCallback, failedCallback, userContext) {
return this._invoke(LiveMapDemo.MapDataService.get_path(), 'GetServiceVehicleData',false,{serviceID:serviceID},succeededCallback,failedCallback,userContext); }}
LiveMapDemo.MapDataService.registerClass('LiveMapDemo.MapDataService',Sys.Net.WebServiceProxy);
LiveMapDemo.MapDataService._staticInstance = new LiveMapDemo.MapDataService();
LiveMapDemo.MapDataService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; LiveMapDemo.MapDataService._staticInstance._path = value; }
LiveMapDemo.MapDataService.get_path = function() { return LiveMapDemo.MapDataService._staticInstance._path; }
LiveMapDemo.MapDataService.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); }
LiveMapDemo.MapDataService._staticInstance._timeout = value; }
LiveMapDemo.MapDataService.get_timeout = function() { 
return LiveMapDemo.MapDataService._staticInstance._timeout; }
LiveMapDemo.MapDataService.set_defaultUserContext = function(value) { 
LiveMapDemo.MapDataService._staticInstance._userContext = value; }
LiveMapDemo.MapDataService.get_defaultUserContext = function() { 
return LiveMapDemo.MapDataService._staticInstance._userContext; }
LiveMapDemo.MapDataService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; LiveMapDemo.MapDataService._staticInstance._succeeded = value; }
LiveMapDemo.MapDataService.get_defaultSucceededCallback = function() { 
return LiveMapDemo.MapDataService._staticInstance._succeeded; }
LiveMapDemo.MapDataService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; LiveMapDemo.MapDataService._staticInstance._failed = value; }
LiveMapDemo.MapDataService.get_defaultFailedCallback = function() { 
return LiveMapDemo.MapDataService._staticInstance._failed; }
LiveMapDemo.MapDataService.set_path("/LiveMaps/MapDataService.asmx");
LiveMapDemo.MapDataService.GetStopsForLevel= function(level,onSuccess,onFailed,userContext) {LiveMapDemo.MapDataService._staticInstance.GetStopsForLevel(level,onSuccess,onFailed,userContext); }
LiveMapDemo.MapDataService.GetStop= function(stopRef,onSuccess,onFailed,userContext) {LiveMapDemo.MapDataService._staticInstance.GetStop(stopRef,onSuccess,onFailed,userContext); }
LiveMapDemo.MapDataService.GetSignData= function(stopRef,count,onSuccess,onFailed,userContext) {LiveMapDemo.MapDataService._staticInstance.GetSignData(stopRef,count,onSuccess,onFailed,userContext); }
LiveMapDemo.MapDataService.GetVehicleData= function(vehicleID,onSuccess,onFailed,userContext) {LiveMapDemo.MapDataService._staticInstance.GetVehicleData(vehicleID,onSuccess,onFailed,userContext); }
LiveMapDemo.MapDataService.GetServiceVehicleData= function(serviceID,onSuccess,onFailed,userContext) {LiveMapDemo.MapDataService._staticInstance.GetServiceVehicleData(serviceID,onSuccess,onFailed,userContext); }

