Type.registerNamespace('Interhome.Web.WebFramework.Ajax');
Interhome.Web.WebFramework.Ajax.FavoriteList=function() {
Interhome.Web.WebFramework.Ajax.FavoriteList.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Interhome.Web.WebFramework.Ajax.FavoriteList.prototype={
AddToFavorites:function(inputValues,succeededCallback, failedCallback, userContext) {
return this._invoke(Interhome.Web.WebFramework.Ajax.FavoriteList.get_path(), 'AddToFavorites',false,{inputValues:inputValues},succeededCallback,failedCallback,userContext); },
DeleteFromFavorites:function(inputValues,succeededCallback, failedCallback, userContext) {
return this._invoke(Interhome.Web.WebFramework.Ajax.FavoriteList.get_path(), 'DeleteFromFavorites',false,{inputValues:inputValues},succeededCallback,failedCallback,userContext); },
GetFavoriteItems:function(season,succeededCallback, failedCallback, userContext) {
return this._invoke(Interhome.Web.WebFramework.Ajax.FavoriteList.get_path(), 'GetFavoriteItems',false,{season:season},succeededCallback,failedCallback,userContext); }}
Interhome.Web.WebFramework.Ajax.FavoriteList.registerClass('Interhome.Web.WebFramework.Ajax.FavoriteList',Sys.Net.WebServiceProxy);
Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance = new Interhome.Web.WebFramework.Ajax.FavoriteList();
Interhome.Web.WebFramework.Ajax.FavoriteList.set_path = function(value) { Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._path = value; }
Interhome.Web.WebFramework.Ajax.FavoriteList.get_path = function() { return Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._path; }
Interhome.Web.WebFramework.Ajax.FavoriteList.set_timeout = function(value) { Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._timeout = value; }
Interhome.Web.WebFramework.Ajax.FavoriteList.get_timeout = function() { return Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._timeout; }
Interhome.Web.WebFramework.Ajax.FavoriteList.set_defaultUserContext = function(value) { Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._userContext = value; }
Interhome.Web.WebFramework.Ajax.FavoriteList.get_defaultUserContext = function() { return Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._userContext; }
Interhome.Web.WebFramework.Ajax.FavoriteList.set_defaultSucceededCallback = function(value) { Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._succeeded = value; }
Interhome.Web.WebFramework.Ajax.FavoriteList.get_defaultSucceededCallback = function() { return Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._succeeded; }
Interhome.Web.WebFramework.Ajax.FavoriteList.set_defaultFailedCallback = function(value) { Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._failed = value; }
Interhome.Web.WebFramework.Ajax.FavoriteList.get_defaultFailedCallback = function() { return Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance._failed; }
Interhome.Web.WebFramework.Ajax.FavoriteList.set_path("/Services/FavoriteList.asmx");
Interhome.Web.WebFramework.Ajax.FavoriteList.AddToFavorites= function(inputValues,onSuccess,onFailed,userContext) {Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance.AddToFavorites(inputValues,onSuccess,onFailed,userContext); }
Interhome.Web.WebFramework.Ajax.FavoriteList.DeleteFromFavorites= function(inputValues,onSuccess,onFailed,userContext) {Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance.DeleteFromFavorites(inputValues,onSuccess,onFailed,userContext); }
Interhome.Web.WebFramework.Ajax.FavoriteList.GetFavoriteItems= function(season,onSuccess,onFailed,userContext) {Interhome.Web.WebFramework.Ajax.FavoriteList._staticInstance.GetFavoriteItems(season,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Interhome.Web.WebFramework.Ajax.FavoriteListInputValues) === 'undefined') {
Interhome.Web.WebFramework.Ajax.FavoriteListInputValues=gtc("Interhome.Web.WebFramework.Ajax.FavoriteListInputValues");
Interhome.Web.WebFramework.Ajax.FavoriteListInputValues.registerClass('Interhome.Web.WebFramework.Ajax.FavoriteListInputValues');
}
if (typeof(Interhome.Web.WebFramework.Ajax.FavoriteListReturnValues) === 'undefined') {
Interhome.Web.WebFramework.Ajax.FavoriteListReturnValues=gtc("Interhome.Web.WebFramework.Ajax.FavoriteListReturnValues");
Interhome.Web.WebFramework.Ajax.FavoriteListReturnValues.registerClass('Interhome.Web.WebFramework.Ajax.FavoriteListReturnValues');
}
if (typeof(Interhome.Web.WebFramework.Ajax.FavoriteItem) === 'undefined') {
Interhome.Web.WebFramework.Ajax.FavoriteItem=gtc("Interhome.Web.WebFramework.Ajax.FavoriteItem");
Interhome.Web.WebFramework.Ajax.FavoriteItem.registerClass('Interhome.Web.WebFramework.Ajax.FavoriteItem');
}
Type.registerNamespace('Interhome.Common.Enums');
if (typeof(Interhome.Common.Enums.Season) === 'undefined') {
Interhome.Common.Enums.Season = function() { throw Error.invalidOperation(); }
Interhome.Common.Enums.Season.prototype = {NotSet: 0,Summer: 1,Winter: 2}
Interhome.Common.Enums.Season.registerEnum('Interhome.Common.Enums.Season', true);
}
