Type.registerNamespace('WeatherWidget');
WeatherWidget.WeatherChannelService=function() {
WeatherWidget.WeatherChannelService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WeatherWidget.WeatherChannelService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WeatherWidget.WeatherChannelService._staticInstance.get_path();},
GetWeatherByZipcode:function(zipCode,numberOfDays,isMetric,succeededCallback, failedCallback, userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="numberOfDays" type="Number">System.Int32</param>
/// <param name="isMetric" type="Boolean">System.Boolean</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(), 'GetWeatherByZipcode',false,{zipCode:zipCode,numberOfDays:numberOfDays,isMetric:isMetric},succeededCallback,failedCallback,userContext); }}
WeatherWidget.WeatherChannelService.registerClass('WeatherWidget.WeatherChannelService',Sys.Net.WebServiceProxy);
WeatherWidget.WeatherChannelService._staticInstance = new WeatherWidget.WeatherChannelService();
WeatherWidget.WeatherChannelService.set_path = function(value) {
WeatherWidget.WeatherChannelService._staticInstance.set_path(value); }
WeatherWidget.WeatherChannelService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return WeatherWidget.WeatherChannelService._staticInstance.get_path();}
WeatherWidget.WeatherChannelService.set_timeout = function(value) {
WeatherWidget.WeatherChannelService._staticInstance.set_timeout(value); }
WeatherWidget.WeatherChannelService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return WeatherWidget.WeatherChannelService._staticInstance.get_timeout(); }
WeatherWidget.WeatherChannelService.set_defaultUserContext = function(value) { 
WeatherWidget.WeatherChannelService._staticInstance.set_defaultUserContext(value); }
WeatherWidget.WeatherChannelService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return WeatherWidget.WeatherChannelService._staticInstance.get_defaultUserContext(); }
WeatherWidget.WeatherChannelService.set_defaultSucceededCallback = function(value) { 
 WeatherWidget.WeatherChannelService._staticInstance.set_defaultSucceededCallback(value); }
WeatherWidget.WeatherChannelService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return WeatherWidget.WeatherChannelService._staticInstance.get_defaultSucceededCallback(); }
WeatherWidget.WeatherChannelService.set_defaultFailedCallback = function(value) { 
WeatherWidget.WeatherChannelService._staticInstance.set_defaultFailedCallback(value); }
WeatherWidget.WeatherChannelService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return WeatherWidget.WeatherChannelService._staticInstance.get_defaultFailedCallback(); }
WeatherWidget.WeatherChannelService.set_path("/weatherwidget/services/WeatherChannelService.asmx");
WeatherWidget.WeatherChannelService.GetWeatherByZipcode= function(zipCode,numberOfDays,isMetric,onSuccess,onFailed,userContext) {
/// <param name="zipCode" type="String">System.String</param>
/// <param name="numberOfDays" type="Number">System.Int32</param>
/// <param name="isMetric" type="Boolean">System.Boolean</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>
WeatherWidget.WeatherChannelService._staticInstance.GetWeatherByZipcode(zipCode,numberOfDays,isMetric,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(WeatherWidget.Forecast) === 'undefined') {
WeatherWidget.Forecast=gtc("WeatherWidget.Forecast");
WeatherWidget.Forecast.registerClass('WeatherWidget.Forecast');
}
