Type.registerNamespace('ETS.UI.Services');
ETS.UI.Services.LocationService=function() {
ETS.UI.Services.LocationService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ETS.UI.Services.LocationService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ETS.UI.Services.LocationService._staticInstance.get_path();},
GetBlackoutDates:function(pickupLocation,pickupDate,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetBlackoutDates',false,{pickupLocation:pickupLocation,pickupDate:pickupDate,culture:culture},succeededCallback,failedCallback,userContext); },
GetLocationTimes:function(componentId,date,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocationTimes',false,{componentId:componentId,date:date,culture:culture},succeededCallback,failedCallback,userContext); },
GetPickupLocations:function(countryGrouping,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPickupLocations',false,{countryGrouping:countryGrouping},succeededCallback,failedCallback,userContext); },
GetPickupLocationsWithPromoCode:function(countryGrouping,promoCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPickupLocationsWithPromoCode',false,{countryGrouping:countryGrouping,promoCode:promoCode},succeededCallback,failedCallback,userContext); },
GetPickupLocationsListItemsFromPromoCode:function(countryGrouping,promoCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPickupLocationsListItemsFromPromoCode',false,{countryGrouping:countryGrouping,promoCode:promoCode},succeededCallback,failedCallback,userContext); },
GetPickupLocationsListItems:function(countryGrouping,bookingVehicleId,affiliateId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPickupLocationsListItems',false,{countryGrouping:countryGrouping,bookingVehicleId:bookingVehicleId,affiliateId:affiliateId},succeededCallback,failedCallback,userContext); },
GetPickupLocationsListItemsFromVehicleManufacturer:function(countryGrouping,bookingVehicleId,vehicleManufacturerId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPickupLocationsListItemsFromVehicleManufacturer',false,{countryGrouping:countryGrouping,bookingVehicleId:bookingVehicleId,vehicleManufacturerId:vehicleManufacturerId},succeededCallback,failedCallback,userContext); },
GetValidDropoffLocations:function(pickupLocationId,pickupDate,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetValidDropoffLocations',false,{pickupLocationId:pickupLocationId,pickupDate:pickupDate,culture:culture},succeededCallback,failedCallback,userContext); },
GetValidDropoffLocationsListItems:function(pickupLocationId,pickupDate,locationType,culture,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetValidDropoffLocationsListItems',false,{pickupLocationId:pickupLocationId,pickupDate:pickupDate,locationType:locationType,culture:culture},succeededCallback,failedCallback,userContext); },
GetDropoffLocationIdFromSession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetDropoffLocationIdFromSession',false,{},succeededCallback,failedCallback,userContext); },
GetClusteredLocales:function(affiliateId,zoomLevel,showOpenTerritories,topLeftLatitude,topLeftLongitude,bottomRightLatitude,bottomRightLongitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetClusteredLocales',false,{affiliateId:affiliateId,zoomLevel:zoomLevel,showOpenTerritories:showOpenTerritories,topLeftLatitude:topLeftLatitude,topLeftLongitude:topLeftLongitude,bottomRightLatitude:bottomRightLatitude,bottomRightLongitude:bottomRightLongitude},succeededCallback,failedCallback,userContext); },
GetLocationCenter:function(locationComponentId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocationCenter',false,{locationComponentId:locationComponentId},succeededCallback,failedCallback,userContext); },
GetLocaleDetails:function(localeId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocaleDetails',false,{localeId:localeId},succeededCallback,failedCallback,userContext); },
UploadHeaderImage:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UploadHeaderImage',false,{},succeededCallback,failedCallback,userContext); },
GetAvailableRegions:function(selectedCountry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAvailableRegions',false,{selectedCountry:selectedCountry},succeededCallback,failedCallback,userContext); },
GetAllRegionsByCountry:function(selectedCountry,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAllRegionsByCountry',false,{selectedCountry:selectedCountry},succeededCallback,failedCallback,userContext); }}
ETS.UI.Services.LocationService.registerClass('ETS.UI.Services.LocationService',Sys.Net.WebServiceProxy);
ETS.UI.Services.LocationService._staticInstance = new ETS.UI.Services.LocationService();
ETS.UI.Services.LocationService.set_path = function(value) { ETS.UI.Services.LocationService._staticInstance.set_path(value); }
ETS.UI.Services.LocationService.get_path = function() { return ETS.UI.Services.LocationService._staticInstance.get_path(); }
ETS.UI.Services.LocationService.set_timeout = function(value) { ETS.UI.Services.LocationService._staticInstance.set_timeout(value); }
ETS.UI.Services.LocationService.get_timeout = function() { return ETS.UI.Services.LocationService._staticInstance.get_timeout(); }
ETS.UI.Services.LocationService.set_defaultUserContext = function(value) { ETS.UI.Services.LocationService._staticInstance.set_defaultUserContext(value); }
ETS.UI.Services.LocationService.get_defaultUserContext = function() { return ETS.UI.Services.LocationService._staticInstance.get_defaultUserContext(); }
ETS.UI.Services.LocationService.set_defaultSucceededCallback = function(value) { ETS.UI.Services.LocationService._staticInstance.set_defaultSucceededCallback(value); }
ETS.UI.Services.LocationService.get_defaultSucceededCallback = function() { return ETS.UI.Services.LocationService._staticInstance.get_defaultSucceededCallback(); }
ETS.UI.Services.LocationService.set_defaultFailedCallback = function(value) { ETS.UI.Services.LocationService._staticInstance.set_defaultFailedCallback(value); }
ETS.UI.Services.LocationService.get_defaultFailedCallback = function() { return ETS.UI.Services.LocationService._staticInstance.get_defaultFailedCallback(); }
ETS.UI.Services.LocationService.set_path("/ETS.UI/WebServices/LocationService.asmx");
ETS.UI.Services.LocationService.GetBlackoutDates= function(pickupLocation,pickupDate,culture,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetBlackoutDates(pickupLocation,pickupDate,culture,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetLocationTimes= function(componentId,date,culture,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetLocationTimes(componentId,date,culture,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetPickupLocations= function(countryGrouping,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetPickupLocations(countryGrouping,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetPickupLocationsWithPromoCode= function(countryGrouping,promoCode,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetPickupLocationsWithPromoCode(countryGrouping,promoCode,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetPickupLocationsListItemsFromPromoCode= function(countryGrouping,promoCode,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetPickupLocationsListItemsFromPromoCode(countryGrouping,promoCode,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetPickupLocationsListItems= function(countryGrouping,bookingVehicleId,affiliateId,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetPickupLocationsListItems(countryGrouping,bookingVehicleId,affiliateId,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetPickupLocationsListItemsFromVehicleManufacturer= function(countryGrouping,bookingVehicleId,vehicleManufacturerId,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetPickupLocationsListItemsFromVehicleManufacturer(countryGrouping,bookingVehicleId,vehicleManufacturerId,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetValidDropoffLocations= function(pickupLocationId,pickupDate,culture,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetValidDropoffLocations(pickupLocationId,pickupDate,culture,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetValidDropoffLocationsListItems= function(pickupLocationId,pickupDate,locationType,culture,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetValidDropoffLocationsListItems(pickupLocationId,pickupDate,locationType,culture,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetDropoffLocationIdFromSession= function(onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetDropoffLocationIdFromSession(onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetClusteredLocales= function(affiliateId,zoomLevel,showOpenTerritories,topLeftLatitude,topLeftLongitude,bottomRightLatitude,bottomRightLongitude,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetClusteredLocales(affiliateId,zoomLevel,showOpenTerritories,topLeftLatitude,topLeftLongitude,bottomRightLatitude,bottomRightLongitude,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetLocationCenter= function(locationComponentId,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetLocationCenter(locationComponentId,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetLocaleDetails= function(localeId,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetLocaleDetails(localeId,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.UploadHeaderImage= function(onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.UploadHeaderImage(onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetAvailableRegions= function(selectedCountry,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetAvailableRegions(selectedCountry,onSuccess,onFailed,userContext); }
ETS.UI.Services.LocationService.GetAllRegionsByCountry= function(selectedCountry,onSuccess,onFailed,userContext) {ETS.UI.Services.LocationService._staticInstance.GetAllRegionsByCountry(selectedCountry,onSuccess,onFailed,userContext); }
