Type.registerNamespace('Domegos.Services');
Domegos.Services.Location=function() {
Domegos.Services.Location.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Domegos.Services.Location.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Domegos.Services.Location._staticInstance.get_path();},
Countries_Changed:function(isType,countryId,minDate,maxDate,persons,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Countries_Changed',false,{isType:isType,countryId:countryId,minDate:minDate,maxDate:maxDate,persons:persons},succeededCallback,failedCallback,userContext); },
Regions_Changed:function(isType,countryId,regionId,minDate,maxDate,persons,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Regions_Changed',false,{isType:isType,countryId:countryId,regionId:regionId,minDate:minDate,maxDate:maxDate,persons:persons},succeededCallback,failedCallback,userContext); },
Cities_Changed:function(isType,countryId,regionId,cityId,minDate,maxDate,persons,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Cities_Changed',false,{isType:isType,countryId:countryId,regionId:regionId,cityId:cityId,minDate:minDate,maxDate:maxDate,persons:persons},succeededCallback,failedCallback,userContext); },
City_Search:function(citySearch,countryId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'City_Search',false,{citySearch:citySearch,countryId:countryId},succeededCallback,failedCallback,userContext); }}
Domegos.Services.Location.registerClass('Domegos.Services.Location',Sys.Net.WebServiceProxy);
Domegos.Services.Location._staticInstance = new Domegos.Services.Location();
Domegos.Services.Location.set_path = function(value) { Domegos.Services.Location._staticInstance.set_path(value); }
Domegos.Services.Location.get_path = function() { return Domegos.Services.Location._staticInstance.get_path(); }
Domegos.Services.Location.set_timeout = function(value) { Domegos.Services.Location._staticInstance.set_timeout(value); }
Domegos.Services.Location.get_timeout = function() { return Domegos.Services.Location._staticInstance.get_timeout(); }
Domegos.Services.Location.set_defaultUserContext = function(value) { Domegos.Services.Location._staticInstance.set_defaultUserContext(value); }
Domegos.Services.Location.get_defaultUserContext = function() { return Domegos.Services.Location._staticInstance.get_defaultUserContext(); }
Domegos.Services.Location.set_defaultSucceededCallback = function(value) { Domegos.Services.Location._staticInstance.set_defaultSucceededCallback(value); }
Domegos.Services.Location.get_defaultSucceededCallback = function() { return Domegos.Services.Location._staticInstance.get_defaultSucceededCallback(); }
Domegos.Services.Location.set_defaultFailedCallback = function(value) { Domegos.Services.Location._staticInstance.set_defaultFailedCallback(value); }
Domegos.Services.Location.get_defaultFailedCallback = function() { return Domegos.Services.Location._staticInstance.get_defaultFailedCallback(); }
Domegos.Services.Location.set_path("/Services/Location.asmx");
Domegos.Services.Location.Countries_Changed= function(isType,countryId,minDate,maxDate,persons,onSuccess,onFailed,userContext) {Domegos.Services.Location._staticInstance.Countries_Changed(isType,countryId,minDate,maxDate,persons,onSuccess,onFailed,userContext); }
Domegos.Services.Location.Regions_Changed= function(isType,countryId,regionId,minDate,maxDate,persons,onSuccess,onFailed,userContext) {Domegos.Services.Location._staticInstance.Regions_Changed(isType,countryId,regionId,minDate,maxDate,persons,onSuccess,onFailed,userContext); }
Domegos.Services.Location.Cities_Changed= function(isType,countryId,regionId,cityId,minDate,maxDate,persons,onSuccess,onFailed,userContext) {Domegos.Services.Location._staticInstance.Cities_Changed(isType,countryId,regionId,cityId,minDate,maxDate,persons,onSuccess,onFailed,userContext); }
Domegos.Services.Location.City_Search= function(citySearch,countryId,onSuccess,onFailed,userContext) {Domegos.Services.Location._staticInstance.City_Search(citySearch,countryId,onSuccess,onFailed,userContext); }
