var MyTripWS=function() {
MyTripWS.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MyTripWS.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MyTripWS._staticInstance.get_path();},
AddMyTrip:function(origCode,destCode,departDate,returnDate,purpose,notes,subject,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddMyTrip',false,{origCode:origCode,destCode:destCode,departDate:departDate,returnDate:returnDate,purpose:purpose,notes:notes,subject:subject},succeededCallback,failedCallback,userContext); },
GetTrip:function(tripID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetTrip',false,{tripID:tripID},succeededCallback,failedCallback,userContext); },
AddTrip:function(myTripJS,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddTrip',false,{myTripJS:myTripJS},succeededCallback,failedCallback,userContext); },
SaveTrip:function(myTripJS,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveTrip',false,{myTripJS:myTripJS},succeededCallback,failedCallback,userContext); },
GetRecentTrips:function(isCachable,top,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetRecentTrips',false,{isCachable:isCachable,top:top},succeededCallback,failedCallback,userContext); },
GetUserTrips:function(userID,isCachable,top,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetUserTrips',false,{userID:userID,isCachable:isCachable,top:top},succeededCallback,failedCallback,userContext); },
GetCityTrips:function(cityCode,isCachable,top,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCityTrips',false,{cityCode:cityCode,isCachable:isCachable,top:top},succeededCallback,failedCallback,userContext); },
GetCountryStateTrips:function(countryCode,stateCode,isCachable,top,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCountryStateTrips',false,{countryCode:countryCode,stateCode:stateCode,isCachable:isCachable,top:top},succeededCallback,failedCallback,userContext); },
DeleteTrip:function(myTrip,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteTrip',false,{myTrip:myTrip},succeededCallback,failedCallback,userContext); },
DeleteTripPad:function(myTripPad,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteTripPad',false,{myTripPad:myTripPad},succeededCallback,failedCallback,userContext); },
SetTripPadSortOrder:function(tripPadSortOrder,placement,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetTripPadSortOrder',false,{tripPadSortOrder:tripPadSortOrder,placement:placement},succeededCallback,failedCallback,userContext); },
DeleteTripInvitation:function(myTripInvitation,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteTripInvitation',false,{myTripInvitation:myTripInvitation},succeededCallback,failedCallback,userContext); },
SendTripInvitations:function(myTripJS,emails,message,resend,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendTripInvitations',false,{myTripJS:myTripJS,emails:emails,message:message,resend:resend},succeededCallback,failedCallback,userContext); },
AddFlightToTripPad:function(flightTripPadJS,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddFlightToTripPad',false,{flightTripPadJS:flightTripPadJS},succeededCallback,failedCallback,userContext); },
AddHotelToTripPad:function(hotelTripPadJS,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddHotelToTripPad',false,{hotelTripPadJS:hotelTripPadJS},succeededCallback,failedCallback,userContext); },
AddArticleToTripPad:function(tripID,postID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddArticleToTripPad',false,{tripID:tripID,postID:postID},succeededCallback,failedCallback,userContext); }}
MyTripWS.registerClass('MyTripWS',Sys.Net.WebServiceProxy);
MyTripWS._staticInstance = new MyTripWS();
MyTripWS.set_path = function(value) { MyTripWS._staticInstance.set_path(value); }
MyTripWS.get_path = function() { return MyTripWS._staticInstance.get_path(); }
MyTripWS.set_timeout = function(value) { MyTripWS._staticInstance.set_timeout(value); }
MyTripWS.get_timeout = function() { return MyTripWS._staticInstance.get_timeout(); }
MyTripWS.set_defaultUserContext = function(value) { MyTripWS._staticInstance.set_defaultUserContext(value); }
MyTripWS.get_defaultUserContext = function() { return MyTripWS._staticInstance.get_defaultUserContext(); }
MyTripWS.set_defaultSucceededCallback = function(value) { MyTripWS._staticInstance.set_defaultSucceededCallback(value); }
MyTripWS.get_defaultSucceededCallback = function() { return MyTripWS._staticInstance.get_defaultSucceededCallback(); }
MyTripWS.set_defaultFailedCallback = function(value) { MyTripWS._staticInstance.set_defaultFailedCallback(value); }
MyTripWS.get_defaultFailedCallback = function() { return MyTripWS._staticInstance.get_defaultFailedCallback(); }
MyTripWS.set_enableJsonp = function(value) { MyTripWS._staticInstance.set_enableJsonp(value); }
MyTripWS.get_enableJsonp = function() { return MyTripWS._staticInstance.get_enableJsonp(); }
MyTripWS.set_jsonpCallbackParameter = function(value) { MyTripWS._staticInstance.set_jsonpCallbackParameter(value); }
MyTripWS.get_jsonpCallbackParameter = function() { return MyTripWS._staticInstance.get_jsonpCallbackParameter(); }
MyTripWS.set_path("/MyTripWS.asmx");
MyTripWS.AddMyTrip= function(origCode,destCode,departDate,returnDate,purpose,notes,subject,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.AddMyTrip(origCode,destCode,departDate,returnDate,purpose,notes,subject,onSuccess,onFailed,userContext); }
MyTripWS.GetTrip= function(tripID,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.GetTrip(tripID,onSuccess,onFailed,userContext); }
MyTripWS.AddTrip= function(myTripJS,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.AddTrip(myTripJS,onSuccess,onFailed,userContext); }
MyTripWS.SaveTrip= function(myTripJS,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.SaveTrip(myTripJS,onSuccess,onFailed,userContext); }
MyTripWS.GetRecentTrips= function(isCachable,top,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.GetRecentTrips(isCachable,top,onSuccess,onFailed,userContext); }
MyTripWS.GetUserTrips= function(userID,isCachable,top,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.GetUserTrips(userID,isCachable,top,onSuccess,onFailed,userContext); }
MyTripWS.GetCityTrips= function(cityCode,isCachable,top,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.GetCityTrips(cityCode,isCachable,top,onSuccess,onFailed,userContext); }
MyTripWS.GetCountryStateTrips= function(countryCode,stateCode,isCachable,top,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.GetCountryStateTrips(countryCode,stateCode,isCachable,top,onSuccess,onFailed,userContext); }
MyTripWS.DeleteTrip= function(myTrip,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.DeleteTrip(myTrip,onSuccess,onFailed,userContext); }
MyTripWS.DeleteTripPad= function(myTripPad,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.DeleteTripPad(myTripPad,onSuccess,onFailed,userContext); }
MyTripWS.SetTripPadSortOrder= function(tripPadSortOrder,placement,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.SetTripPadSortOrder(tripPadSortOrder,placement,onSuccess,onFailed,userContext); }
MyTripWS.DeleteTripInvitation= function(myTripInvitation,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.DeleteTripInvitation(myTripInvitation,onSuccess,onFailed,userContext); }
MyTripWS.SendTripInvitations= function(myTripJS,emails,message,resend,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.SendTripInvitations(myTripJS,emails,message,resend,onSuccess,onFailed,userContext); }
MyTripWS.AddFlightToTripPad= function(flightTripPadJS,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.AddFlightToTripPad(flightTripPadJS,onSuccess,onFailed,userContext); }
MyTripWS.AddHotelToTripPad= function(hotelTripPadJS,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.AddHotelToTripPad(hotelTripPadJS,onSuccess,onFailed,userContext); }
MyTripWS.AddArticleToTripPad= function(tripID,postID,onSuccess,onFailed,userContext) {MyTripWS._staticInstance.AddArticleToTripPad(tripID,postID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SkyGate.Momondo.Components');
if (typeof(SkyGate.Momondo.Components.MyTrip) === 'undefined') {
SkyGate.Momondo.Components.MyTrip=gtc("SkyGate.Momondo.Components.MyTrip");
SkyGate.Momondo.Components.MyTrip.registerClass('SkyGate.Momondo.Components.MyTrip');
}
if (typeof(MyTripJS) === 'undefined') {
var MyTripJS=gtc("MyTripJS");
MyTripJS.registerClass('MyTripJS');
}
if (typeof(SkyGate.Momondo.Components.MyTripPad) === 'undefined') {
SkyGate.Momondo.Components.MyTripPad=gtc("SkyGate.Momondo.Components.MyTripPad");
SkyGate.Momondo.Components.MyTripPad.registerClass('SkyGate.Momondo.Components.MyTripPad');
}
if (typeof(SkyGate.Momondo.Components.MyTripInvitation) === 'undefined') {
SkyGate.Momondo.Components.MyTripInvitation=gtc("SkyGate.Momondo.Components.MyTripInvitation");
SkyGate.Momondo.Components.MyTripInvitation.registerClass('SkyGate.Momondo.Components.MyTripInvitation');
}
if (typeof(FlightTripPadJS) === 'undefined') {
var FlightTripPadJS=gtc("FlightTripPadJS");
FlightTripPadJS.registerClass('FlightTripPadJS');
}
if (typeof(HotelTripPadJS) === 'undefined') {
var HotelTripPadJS=gtc("HotelTripPadJS");
HotelTripPadJS.registerClass('HotelTripPadJS');
}
if (typeof(SkyGate.Momondo.Components.TripPurpose) === 'undefined') {
SkyGate.Momondo.Components.TripPurpose = function() { throw Error.invalidOperation(); }
SkyGate.Momondo.Components.TripPurpose.prototype = {Leisure: 0,Business: 1}
SkyGate.Momondo.Components.TripPurpose.registerEnum('SkyGate.Momondo.Components.TripPurpose', true);
}

