Type.registerNamespace('Mashup');
Mashup.WeatherService=function() {
Mashup.WeatherService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Mashup.WeatherService.prototype={
GetWeatherByLocation:function(lat,lng,succeededCallback, failedCallback, userContext) {
return this._invoke(Mashup.WeatherService.get_path(), 'GetWeatherByLocation',false,{lat:lat,lng:lng},succeededCallback,failedCallback,userContext); }}
Mashup.WeatherService.registerClass('Mashup.WeatherService',Sys.Net.WebServiceProxy);
Mashup.WeatherService._staticInstance = new Mashup.WeatherService();
Mashup.WeatherService.set_path = function(value) { Mashup.WeatherService._staticInstance._path = value; }
Mashup.WeatherService.get_path = function() { return Mashup.WeatherService._staticInstance._path; }
Mashup.WeatherService.set_timeout = function(value) { Mashup.WeatherService._staticInstance._timeout = value; }
Mashup.WeatherService.get_timeout = function() { return Mashup.WeatherService._staticInstance._timeout; }
Mashup.WeatherService.set_defaultUserContext = function(value) { Mashup.WeatherService._staticInstance._userContext = value; }
Mashup.WeatherService.get_defaultUserContext = function() { return Mashup.WeatherService._staticInstance._userContext; }
Mashup.WeatherService.set_defaultSucceededCallback = function(value) { Mashup.WeatherService._staticInstance._succeeded = value; }
Mashup.WeatherService.get_defaultSucceededCallback = function() { return Mashup.WeatherService._staticInstance._succeeded; }
Mashup.WeatherService.set_defaultFailedCallback = function(value) { Mashup.WeatherService._staticInstance._failed = value; }
Mashup.WeatherService.get_defaultFailedCallback = function() { return Mashup.WeatherService._staticInstance._failed; }
Mashup.WeatherService.set_path("/JuanDoNeblo/JsonWeatherPart3/WeatherService.asmx");
Mashup.WeatherService.GetWeatherByLocation= function(lat,lng,onSuccess,onFailed,userContext) {Mashup.WeatherService._staticInstance.GetWeatherByLocation(lat,lng,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Mashup.SingleWeatherObservation) === 'undefined') {
Mashup.SingleWeatherObservation=gtc("Mashup.SingleWeatherObservation");
Mashup.SingleWeatherObservation.registerClass('Mashup.SingleWeatherObservation');
}
