var GTAHotelRoutines=function() {
GTAHotelRoutines.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GTAHotelRoutines.prototype={
SearchForHotels:function(DestinationType,areaCode,locationCode,hotelName,day,yearMonth,dayCount,priceInterval,starRating,roomDefinitions,facilityCodes,succeededCallback, failedCallback, userContext) {
return this._invoke(GTAHotelRoutines.get_path(), 'SearchForHotels',false,{DestinationType:DestinationType,areaCode:areaCode,locationCode:locationCode,hotelName:hotelName,day:day,yearMonth:yearMonth,dayCount:dayCount,priceInterval:priceInterval,starRating:starRating,roomDefinitions:roomDefinitions,facilityCodes:facilityCodes},succeededCallback,failedCallback,userContext); },
GetCitiesAndCountry:function(prefixText,count,succeededCallback, failedCallback, userContext) {
return this._invoke(GTAHotelRoutines.get_path(), 'GetCitiesAndCountry',false,{prefixText:prefixText,count:count},succeededCallback,failedCallback,userContext); },
GetLocations:function(cityCode,type,succeededCallback, failedCallback, userContext) {
return this._invoke(GTAHotelRoutines.get_path(), 'GetLocations',false,{cityCode:cityCode,type:type},succeededCallback,failedCallback,userContext); },
GetAirportsByCity:function(cityCode,succeededCallback, failedCallback, userContext) {
return this._invoke(GTAHotelRoutines.get_path(), 'GetAirportsByCity',false,{cityCode:cityCode},succeededCallback,failedCallback,userContext); },
GetHotelsByCity:function(cityCode,succeededCallback, failedCallback, userContext) {
return this._invoke(GTAHotelRoutines.get_path(), 'GetHotelsByCity',false,{cityCode:cityCode},succeededCallback,failedCallback,userContext); },
GetStationsByCity:function(cityCode,succeededCallback, failedCallback, userContext) {
return this._invoke(GTAHotelRoutines.get_path(), 'GetStationsByCity',false,{cityCode:cityCode},succeededCallback,failedCallback,userContext); }}
GTAHotelRoutines.registerClass('GTAHotelRoutines',Sys.Net.WebServiceProxy);
GTAHotelRoutines._staticInstance = new GTAHotelRoutines();
GTAHotelRoutines.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; GTAHotelRoutines._staticInstance._path = value; }
GTAHotelRoutines.get_path = function() { return GTAHotelRoutines._staticInstance._path; }
GTAHotelRoutines.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); }
GTAHotelRoutines._staticInstance._timeout = value; }
GTAHotelRoutines.get_timeout = function() { 
return GTAHotelRoutines._staticInstance._timeout; }
GTAHotelRoutines.set_defaultUserContext = function(value) { 
GTAHotelRoutines._staticInstance._userContext = value; }
GTAHotelRoutines.get_defaultUserContext = function() { 
return GTAHotelRoutines._staticInstance._userContext; }
GTAHotelRoutines.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; GTAHotelRoutines._staticInstance._succeeded = value; }
GTAHotelRoutines.get_defaultSucceededCallback = function() { 
return GTAHotelRoutines._staticInstance._succeeded; }
GTAHotelRoutines.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; GTAHotelRoutines._staticInstance._failed = value; }
GTAHotelRoutines.get_defaultFailedCallback = function() { 
return GTAHotelRoutines._staticInstance._failed; }
GTAHotelRoutines.set_path("/web/Services/GTAHotelRoutines.asmx");
GTAHotelRoutines.SearchForHotels= function(DestinationType,areaCode,locationCode,hotelName,day,yearMonth,dayCount,priceInterval,starRating,roomDefinitions,facilityCodes,onSuccess,onFailed,userContext) {GTAHotelRoutines._staticInstance.SearchForHotels(DestinationType,areaCode,locationCode,hotelName,day,yearMonth,dayCount,priceInterval,starRating,roomDefinitions,facilityCodes,onSuccess,onFailed,userContext); }
GTAHotelRoutines.GetCitiesAndCountry= function(prefixText,count,onSuccess,onFailed,userContext) {GTAHotelRoutines._staticInstance.GetCitiesAndCountry(prefixText,count,onSuccess,onFailed,userContext); }
GTAHotelRoutines.GetLocations= function(cityCode,type,onSuccess,onFailed,userContext) {GTAHotelRoutines._staticInstance.GetLocations(cityCode,type,onSuccess,onFailed,userContext); }
GTAHotelRoutines.GetAirportsByCity= function(cityCode,onSuccess,onFailed,userContext) {GTAHotelRoutines._staticInstance.GetAirportsByCity(cityCode,onSuccess,onFailed,userContext); }
GTAHotelRoutines.GetHotelsByCity= function(cityCode,onSuccess,onFailed,userContext) {GTAHotelRoutines._staticInstance.GetHotelsByCity(cityCode,onSuccess,onFailed,userContext); }
GTAHotelRoutines.GetStationsByCity= function(cityCode,onSuccess,onFailed,userContext) {GTAHotelRoutines._staticInstance.GetStationsByCity(cityCode,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(GTAHotelRoutines_RoomDefinition) === 'undefined') {
var GTAHotelRoutines_RoomDefinition=gtc("GTAHotelRoutines+RoomDefinition");
GTAHotelRoutines_RoomDefinition.registerClass('GTAHotelRoutines_RoomDefinition');
}
