Type.registerNamespace('Odin.Modules.Support');
Odin.Modules.Support.TripPlanner=function() {
Odin.Modules.Support.TripPlanner.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Odin.Modules.Support.TripPlanner.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Odin.Modules.Support.TripPlanner._staticInstance.get_path();},
InitBookingSession:function(ownerID,adults,children,infants,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'InitBookingSession',false,{ownerID:ownerID,adults:adults,children:children,infants:infants},succeededCallback,failedCallback,userContext); },
SaveHotel:function(hotelID,roomTypeID,mealPlanID,from,to,totalPrice,mealPlanPrice,totalPriceEnc,mealPlanPriceEnc,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveHotel',false,{hotelID:hotelID,roomTypeID:roomTypeID,mealPlanID:mealPlanID,from:from,to:to,totalPrice:totalPrice,mealPlanPrice:mealPlanPrice,totalPriceEnc:totalPriceEnc,mealPlanPriceEnc:mealPlanPriceEnc},succeededCallback,failedCallback,userContext); },
SaveServices:function(items,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveServices',false,{items:items},succeededCallback,failedCallback,userContext); },
ClearHotelBookings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearHotelBookings',false,{},succeededCallback,failedCallback,userContext); },
ClearServiceBookings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearServiceBookings',false,{},succeededCallback,failedCallback,userContext); },
ClearCarBookings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearCarBookings',false,{},succeededCallback,failedCallback,userContext); },
ClearFlightBookings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearFlightBookings',false,{},succeededCallback,failedCallback,userContext); },
ClearAllBookings:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearAllBookings',false,{},succeededCallback,failedCallback,userContext); },
GetCurrentSession:function(ownerID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCurrentSession',false,{ownerID:ownerID},succeededCallback,failedCallback,userContext); },
SearchHotels:function(options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchHotels',false,{options:options},succeededCallback,failedCallback,userContext); },
SearchServices:function(options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SearchServices',false,{options:options},succeededCallback,failedCallback,userContext); }}
Odin.Modules.Support.TripPlanner.registerClass('Odin.Modules.Support.TripPlanner',Sys.Net.WebServiceProxy);
Odin.Modules.Support.TripPlanner._staticInstance = new Odin.Modules.Support.TripPlanner();
Odin.Modules.Support.TripPlanner.set_path = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_path(value); }
Odin.Modules.Support.TripPlanner.get_path = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_path(); }
Odin.Modules.Support.TripPlanner.set_timeout = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_timeout(value); }
Odin.Modules.Support.TripPlanner.get_timeout = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_timeout(); }
Odin.Modules.Support.TripPlanner.set_defaultUserContext = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_defaultUserContext(value); }
Odin.Modules.Support.TripPlanner.get_defaultUserContext = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_defaultUserContext(); }
Odin.Modules.Support.TripPlanner.set_defaultSucceededCallback = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_defaultSucceededCallback(value); }
Odin.Modules.Support.TripPlanner.get_defaultSucceededCallback = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_defaultSucceededCallback(); }
Odin.Modules.Support.TripPlanner.set_defaultFailedCallback = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_defaultFailedCallback(value); }
Odin.Modules.Support.TripPlanner.get_defaultFailedCallback = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_defaultFailedCallback(); }
Odin.Modules.Support.TripPlanner.set_enableJsonp = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_enableJsonp(value); }
Odin.Modules.Support.TripPlanner.get_enableJsonp = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_enableJsonp(); }
Odin.Modules.Support.TripPlanner.set_jsonpCallbackParameter = function(value) { Odin.Modules.Support.TripPlanner._staticInstance.set_jsonpCallbackParameter(value); }
Odin.Modules.Support.TripPlanner.get_jsonpCallbackParameter = function() { return Odin.Modules.Support.TripPlanner._staticInstance.get_jsonpCallbackParameter(); }
Odin.Modules.Support.TripPlanner.set_path("/data/odin/trip.planner.asmx");
Odin.Modules.Support.TripPlanner.InitBookingSession= function(ownerID,adults,children,infants,onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.InitBookingSession(ownerID,adults,children,infants,onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.SaveHotel= function(hotelID,roomTypeID,mealPlanID,from,to,totalPrice,mealPlanPrice,totalPriceEnc,mealPlanPriceEnc,onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.SaveHotel(hotelID,roomTypeID,mealPlanID,from,to,totalPrice,mealPlanPrice,totalPriceEnc,mealPlanPriceEnc,onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.SaveServices= function(items,onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.SaveServices(items,onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.ClearHotelBookings= function(onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.ClearHotelBookings(onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.ClearServiceBookings= function(onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.ClearServiceBookings(onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.ClearCarBookings= function(onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.ClearCarBookings(onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.ClearFlightBookings= function(onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.ClearFlightBookings(onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.ClearAllBookings= function(onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.ClearAllBookings(onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.GetCurrentSession= function(ownerID,onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.GetCurrentSession(ownerID,onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.SearchHotels= function(options,onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.SearchHotels(options,onSuccess,onFailed,userContext); }
Odin.Modules.Support.TripPlanner.SearchServices= function(options,onSuccess,onFailed,userContext) {Odin.Modules.Support.TripPlanner._staticInstance.SearchServices(options,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Odin.Modules.Support.ServiceSelection) === 'undefined') {
Odin.Modules.Support.ServiceSelection=gtc("Odin.Modules.Support.ServiceSelection");
Odin.Modules.Support.ServiceSelection.registerClass('Odin.Modules.Support.ServiceSelection');
}
Type.registerNamespace('Odin.Modules.Common');
if (typeof(Odin.Modules.Common.SessionInfo) === 'undefined') {
Odin.Modules.Common.SessionInfo=gtc("Odin.Modules.Common.SessionInfo");
Odin.Modules.Common.SessionInfo.registerClass('Odin.Modules.Common.SessionInfo');
}
if (typeof(Odin.Modules.Support.SearchHotelsOptions) === 'undefined') {
Odin.Modules.Support.SearchHotelsOptions=gtc("Odin.Modules.Support.SearchHotelsOptions");
Odin.Modules.Support.SearchHotelsOptions.registerClass('Odin.Modules.Support.SearchHotelsOptions');
}
Type.registerNamespace('Odin.Modules.Common.OdinService.BookingEngine');
if (typeof(Odin.Modules.Common.OdinService.BookingEngine.Hotel) === 'undefined') {
Odin.Modules.Common.OdinService.BookingEngine.Hotel=gtc("Odin.Modules.Common.OdinService.BookingEngine.Hotel");
Odin.Modules.Common.OdinService.BookingEngine.Hotel.registerClass('Odin.Modules.Common.OdinService.BookingEngine.Hotel');
}
if (typeof(Odin.Modules.Support.SearchServicesOptions) === 'undefined') {
Odin.Modules.Support.SearchServicesOptions=gtc("Odin.Modules.Support.SearchServicesOptions");
Odin.Modules.Support.SearchServicesOptions.registerClass('Odin.Modules.Support.SearchServicesOptions');
}
if (typeof(Odin.Modules.Common.OdinService.BookingEngine.Service) === 'undefined') {
Odin.Modules.Common.OdinService.BookingEngine.Service=gtc("Odin.Modules.Common.OdinService.BookingEngine.Service");
Odin.Modules.Common.OdinService.BookingEngine.Service.registerClass('Odin.Modules.Common.OdinService.BookingEngine.Service');
}

