var Momondo=function() {
Momondo.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Momondo.prototype={
UpdateFlightResults:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'UpdateFlightResults',false,{},succeededCallback,failedCallback,userContext); },
UpdateHotelResults:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'UpdateHotelResults',false,{},succeededCallback,failedCallback,userContext); },
GetHotelDetails:function(AHotelKey,succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'GetHotelDetails',false,{AHotelKey:AHotelKey},succeededCallback,failedCallback,userContext); },
UpdateCarResults:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'UpdateCarResults',false,{},succeededCallback,failedCallback,userContext); },
StartHotelSearch:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'StartHotelSearch',false,{},succeededCallback,failedCallback,userContext); },
StartCarSearch:function(succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'StartCarSearch',false,{},succeededCallback,failedCallback,userContext); },
GetRecentSearches:function(Count,succeededCallback, failedCallback, userContext) {
return this._invoke(Momondo.get_path(), 'GetRecentSearches',false,{Count:Count},succeededCallback,failedCallback,userContext); }}
Momondo.registerClass('Momondo',Sys.Net.WebServiceProxy);
Momondo._staticInstance = new Momondo();
Momondo.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Momondo._staticInstance._path = value; }
Momondo.get_path = function() { return Momondo._staticInstance._path; }
Momondo.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
Momondo._staticInstance._timeout = value; }
Momondo.get_timeout = function() { 
return Momondo._staticInstance._timeout; }
Momondo.set_defaultUserContext = function(value) { 
Momondo._staticInstance._userContext = value; }
Momondo.get_defaultUserContext = function() { 
return Momondo._staticInstance._userContext; }
Momondo.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Momondo._staticInstance._succeeded = value; }
Momondo.get_defaultSucceededCallback = function() { 
return Momondo._staticInstance._succeeded; }
Momondo.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Momondo._staticInstance._failed = value; }
Momondo.get_defaultFailedCallback = function() { 
return Momondo._staticInstance._failed; }
Momondo.set_path("/Momondo.asmx");
Momondo.UpdateFlightResults= function(onSuccess,onFailed,userContext) {Momondo._staticInstance.UpdateFlightResults(onSuccess,onFailed,userContext); }
Momondo.UpdateHotelResults= function(onSuccess,onFailed,userContext) {Momondo._staticInstance.UpdateHotelResults(onSuccess,onFailed,userContext); }
Momondo.GetHotelDetails= function(AHotelKey,onSuccess,onFailed,userContext) {Momondo._staticInstance.GetHotelDetails(AHotelKey,onSuccess,onFailed,userContext); }
Momondo.UpdateCarResults= function(onSuccess,onFailed,userContext) {Momondo._staticInstance.UpdateCarResults(onSuccess,onFailed,userContext); }
Momondo.StartHotelSearch= function(onSuccess,onFailed,userContext) {Momondo._staticInstance.StartHotelSearch(onSuccess,onFailed,userContext); }
Momondo.StartCarSearch= function(onSuccess,onFailed,userContext) {Momondo._staticInstance.StartCarSearch(onSuccess,onFailed,userContext); }
Momondo.GetRecentSearches= function(Count,onSuccess,onFailed,userContext) {Momondo._staticInstance.GetRecentSearches(Count,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SkyGate.SpeedFares.Momondo');
if (typeof(SkyGate.SpeedFares.Momondo.Search) === 'undefined') {
SkyGate.SpeedFares.Momondo.Search=gtc("SkyGate.SpeedFares.Momondo.Search");
SkyGate.SpeedFares.Momondo.Search.registerClass('SkyGate.SpeedFares.Momondo.Search');
}
