var WeatherService=function() {
WeatherService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WeatherService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WeatherService._staticInstance.get_path();},
GetWeatherHtml:function(jsonReq,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetWeatherHtml',false,{jsonReq:jsonReq},succeededCallback,failedCallback,userContext); },
GetWeatherJson:function(jsonReq,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetWeatherJson',false,{jsonReq:jsonReq},succeededCallback,failedCallback,userContext); },
GetWeatherData:function(city,language,provider,unit,forecastDays,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetWeatherData',false,{city:city,language:language,provider:provider,unit:unit,forecastDays:forecastDays},succeededCallback,failedCallback,userContext); },
GetCities:function(state,lang,provider,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCities',false,{state:state,lang:lang,provider:provider},succeededCallback,failedCallback,userContext); },
GetStates:function(country,lang,provider,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetStates',false,{country:country,lang:lang,provider:provider},succeededCallback,failedCallback,userContext); },
GetStateByCity:function(city,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetStateByCity',false,{city:city},succeededCallback,failedCallback,userContext); },
SearchCity:function(keyword,lang,provider,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchCity',false,{keyword:keyword,lang:lang,provider:provider},succeededCallback,failedCallback,userContext); },
GetKaixinUser:function(userId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetKaixinUser',false,{userId:userId},succeededCallback,failedCallback,userContext); },
SetKaixinUser:function(userId,userName,defaultCity,shareCity,subscribedCities,subscribedUsers,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetKaixinUser',false,{userId:userId,userName:userName,defaultCity:defaultCity,shareCity:shareCity,subscribedCities:subscribedCities,subscribedUsers:subscribedUsers},succeededCallback,failedCallback,userContext); },
GetServiceHits:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetServiceHits',false,{},succeededCallback,failedCallback,userContext); },
UpdateHits:function(bIconHits,bLinkHits,bAdHits,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateHits',false,{bIconHits:bIconHits,bLinkHits:bLinkHits,bAdHits:bAdHits},succeededCallback,failedCallback,userContext); }}
WeatherService.registerClass('WeatherService',Sys.Net.WebServiceProxy);
WeatherService._staticInstance = new WeatherService();
WeatherService.set_path = function(value) { WeatherService._staticInstance.set_path(value); }
WeatherService.get_path = function() { return WeatherService._staticInstance.get_path(); }
WeatherService.set_timeout = function(value) { WeatherService._staticInstance.set_timeout(value); }
WeatherService.get_timeout = function() { return WeatherService._staticInstance.get_timeout(); }
WeatherService.set_defaultUserContext = function(value) { WeatherService._staticInstance.set_defaultUserContext(value); }
WeatherService.get_defaultUserContext = function() { return WeatherService._staticInstance.get_defaultUserContext(); }
WeatherService.set_defaultSucceededCallback = function(value) { WeatherService._staticInstance.set_defaultSucceededCallback(value); }
WeatherService.get_defaultSucceededCallback = function() { return WeatherService._staticInstance.get_defaultSucceededCallback(); }
WeatherService.set_defaultFailedCallback = function(value) { WeatherService._staticInstance.set_defaultFailedCallback(value); }
WeatherService.get_defaultFailedCallback = function() { return WeatherService._staticInstance.get_defaultFailedCallback(); }
WeatherService.set_enableJsonp = function(value) { WeatherService._staticInstance.set_enableJsonp(value); }
WeatherService.get_enableJsonp = function() { return WeatherService._staticInstance.get_enableJsonp(); }
WeatherService.set_jsonpCallbackParameter = function(value) { WeatherService._staticInstance.set_jsonpCallbackParameter(value); }
WeatherService.get_jsonpCallbackParameter = function() { return WeatherService._staticInstance.get_jsonpCallbackParameter(); }
WeatherService.set_path("/weather/WeatherService.asmx");
WeatherService.GetWeatherHtml= function(jsonReq,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetWeatherHtml(jsonReq,onSuccess,onFailed,userContext); }
WeatherService.GetWeatherJson= function(jsonReq,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetWeatherJson(jsonReq,onSuccess,onFailed,userContext); }
WeatherService.GetWeatherData= function(city,language,provider,unit,forecastDays,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetWeatherData(city,language,provider,unit,forecastDays,onSuccess,onFailed,userContext); }
WeatherService.GetCities= function(state,lang,provider,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetCities(state,lang,provider,onSuccess,onFailed,userContext); }
WeatherService.GetStates= function(country,lang,provider,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetStates(country,lang,provider,onSuccess,onFailed,userContext); }
WeatherService.GetStateByCity= function(city,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetStateByCity(city,onSuccess,onFailed,userContext); }
WeatherService.SearchCity= function(keyword,lang,provider,onSuccess,onFailed,userContext) {WeatherService._staticInstance.SearchCity(keyword,lang,provider,onSuccess,onFailed,userContext); }
WeatherService.GetKaixinUser= function(userId,onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetKaixinUser(userId,onSuccess,onFailed,userContext); }
WeatherService.SetKaixinUser= function(userId,userName,defaultCity,shareCity,subscribedCities,subscribedUsers,onSuccess,onFailed,userContext) {WeatherService._staticInstance.SetKaixinUser(userId,userName,defaultCity,shareCity,subscribedCities,subscribedUsers,onSuccess,onFailed,userContext); }
WeatherService.GetServiceHits= function(onSuccess,onFailed,userContext) {WeatherService._staticInstance.GetServiceHits(onSuccess,onFailed,userContext); }
WeatherService.UpdateHits= function(bIconHits,bLinkHits,bAdHits,onSuccess,onFailed,userContext) {WeatherService._staticInstance.UpdateHits(bIconHits,bLinkHits,bAdHits,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ThinkPage.Weather');
if (typeof(ThinkPage.Weather.WeatherResponse) === 'undefined') {
ThinkPage.Weather.WeatherResponse=gtc("ThinkPage.Weather.WeatherResponse");
ThinkPage.Weather.WeatherResponse.registerClass('ThinkPage.Weather.WeatherResponse');
}
if (typeof(ThinkPage.Weather.KaixinUser) === 'undefined') {
ThinkPage.Weather.KaixinUser=gtc("ThinkPage.Weather.KaixinUser");
ThinkPage.Weather.KaixinUser.registerClass('ThinkPage.Weather.KaixinUser');
}
if (typeof(ThinkPage.Weather.Hits) === 'undefined') {
ThinkPage.Weather.Hits=gtc("ThinkPage.Weather.Hits");
ThinkPage.Weather.Hits.registerClass('ThinkPage.Weather.Hits');
}
