Type.registerNamespace('TrafficEyeWWW.service');
TrafficEyeWWW.service.WeatherService=function() {
TrafficEyeWWW.service.WeatherService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TrafficEyeWWW.service.WeatherService.prototype={
GetClosestNeighbour:function(latitude,longitude,succeededCallback, failedCallback, userContext) {
return this._invoke(TrafficEyeWWW.service.WeatherService.get_path(), 'GetClosestNeighbour',true,{latitude:latitude,longitude:longitude},succeededCallback,failedCallback,userContext); }}
TrafficEyeWWW.service.WeatherService.registerClass('TrafficEyeWWW.service.WeatherService',Sys.Net.WebServiceProxy);
TrafficEyeWWW.service.WeatherService._staticInstance = new TrafficEyeWWW.service.WeatherService();
TrafficEyeWWW.service.WeatherService.set_path = function(value) { TrafficEyeWWW.service.WeatherService._staticInstance._path = value; }
TrafficEyeWWW.service.WeatherService.get_path = function() { return TrafficEyeWWW.service.WeatherService._staticInstance._path; }
TrafficEyeWWW.service.WeatherService.set_timeout = function(value) { TrafficEyeWWW.service.WeatherService._staticInstance._timeout = value; }
TrafficEyeWWW.service.WeatherService.get_timeout = function() { return TrafficEyeWWW.service.WeatherService._staticInstance._timeout; }
TrafficEyeWWW.service.WeatherService.set_defaultUserContext = function(value) { TrafficEyeWWW.service.WeatherService._staticInstance._userContext = value; }
TrafficEyeWWW.service.WeatherService.get_defaultUserContext = function() { return TrafficEyeWWW.service.WeatherService._staticInstance._userContext; }
TrafficEyeWWW.service.WeatherService.set_defaultSucceededCallback = function(value) { TrafficEyeWWW.service.WeatherService._staticInstance._succeeded = value; }
TrafficEyeWWW.service.WeatherService.get_defaultSucceededCallback = function() { return TrafficEyeWWW.service.WeatherService._staticInstance._succeeded; }
TrafficEyeWWW.service.WeatherService.set_defaultFailedCallback = function(value) { TrafficEyeWWW.service.WeatherService._staticInstance._failed = value; }
TrafficEyeWWW.service.WeatherService.get_defaultFailedCallback = function() { return TrafficEyeWWW.service.WeatherService._staticInstance._failed; }
TrafficEyeWWW.service.WeatherService.set_path("/service/weather.asmx");
TrafficEyeWWW.service.WeatherService.GetClosestNeighbour= function(latitude,longitude,onSuccess,onFailed,userContext) {TrafficEyeWWW.service.WeatherService._staticInstance.GetClosestNeighbour(latitude,longitude,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DotNetSolutions.TrafficEye.API');
if (typeof(DotNetSolutions.TrafficEye.API.Weather) === 'undefined') {
DotNetSolutions.TrafficEye.API.Weather=gtc("DotNetSolutions.TrafficEye.API.Weather");
DotNetSolutions.TrafficEye.API.Weather.registerClass('DotNetSolutions.TrafficEye.API.Weather');
}
