Type.registerNamespace('ajax.poldo.it');
ajax.poldo.it.AjaxRealEstateService=function() {
ajax.poldo.it.AjaxRealEstateService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ajax.poldo.it.AjaxRealEstateService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ajax.poldo.it.AjaxRealEstateService._staticInstance.get_path();},
GetSearchCount:function(locationId,realEstateTypeId,locationZone,isForSale,isForRent,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetSearchCount',false,{locationId:locationId,realEstateTypeId:realEstateTypeId,locationZone:locationZone,isForSale:isForSale,isForRent:isForRent},succeededCallback,failedCallback,userContext); },
GetZones:function(locationId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetZones',false,{locationId:locationId},succeededCallback,failedCallback,userContext); },
GetLocations:function(locationName,limit,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocations',false,{locationName:locationName,limit:limit},succeededCallback,failedCallback,userContext); },
GetAutocompleteLocations:function(q,limit,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetAutocompleteLocations',false,{q:q,limit:limit},succeededCallback,failedCallback,userContext); },
GetLocationZones:function(locationId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetLocationZones',false,{locationId:locationId},succeededCallback,failedCallback,userContext); },
GetGeoRss:function(searchType,locationId,realEstateTypeId,isForRent,isForSale,priceFrom,priceTo,areaFrom,areaTo,roomsFrom,roomsTo,locationZone,onlyWithMedias,onlyNewBuild,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGeoRss',false,{searchType:searchType,locationId:locationId,realEstateTypeId:realEstateTypeId,isForRent:isForRent,isForSale:isForSale,priceFrom:priceFrom,priceTo:priceTo,areaFrom:areaFrom,areaTo:areaTo,roomsFrom:roomsFrom,roomsTo:roomsTo,locationZone:locationZone,onlyWithMedias:onlyWithMedias,onlyNewBuild:onlyNewBuild},succeededCallback,failedCallback,userContext); }}
ajax.poldo.it.AjaxRealEstateService.registerClass('ajax.poldo.it.AjaxRealEstateService',Sys.Net.WebServiceProxy);
ajax.poldo.it.AjaxRealEstateService._staticInstance = new ajax.poldo.it.AjaxRealEstateService();
ajax.poldo.it.AjaxRealEstateService.set_path = function(value) { ajax.poldo.it.AjaxRealEstateService._staticInstance.set_path(value); }
ajax.poldo.it.AjaxRealEstateService.get_path = function() { return ajax.poldo.it.AjaxRealEstateService._staticInstance.get_path(); }
ajax.poldo.it.AjaxRealEstateService.set_timeout = function(value) { ajax.poldo.it.AjaxRealEstateService._staticInstance.set_timeout(value); }
ajax.poldo.it.AjaxRealEstateService.get_timeout = function() { return ajax.poldo.it.AjaxRealEstateService._staticInstance.get_timeout(); }
ajax.poldo.it.AjaxRealEstateService.set_defaultUserContext = function(value) { ajax.poldo.it.AjaxRealEstateService._staticInstance.set_defaultUserContext(value); }
ajax.poldo.it.AjaxRealEstateService.get_defaultUserContext = function() { return ajax.poldo.it.AjaxRealEstateService._staticInstance.get_defaultUserContext(); }
ajax.poldo.it.AjaxRealEstateService.set_defaultSucceededCallback = function(value) { ajax.poldo.it.AjaxRealEstateService._staticInstance.set_defaultSucceededCallback(value); }
ajax.poldo.it.AjaxRealEstateService.get_defaultSucceededCallback = function() { return ajax.poldo.it.AjaxRealEstateService._staticInstance.get_defaultSucceededCallback(); }
ajax.poldo.it.AjaxRealEstateService.set_defaultFailedCallback = function(value) { ajax.poldo.it.AjaxRealEstateService._staticInstance.set_defaultFailedCallback(value); }
ajax.poldo.it.AjaxRealEstateService.get_defaultFailedCallback = function() { return ajax.poldo.it.AjaxRealEstateService._staticInstance.get_defaultFailedCallback(); }
ajax.poldo.it.AjaxRealEstateService.set_path("/Services/AjaxRealEstateService.svc");
ajax.poldo.it.AjaxRealEstateService.GetSearchCount= function(locationId,realEstateTypeId,locationZone,isForSale,isForRent,onSuccess,onFailed,userContext) {ajax.poldo.it.AjaxRealEstateService._staticInstance.GetSearchCount(locationId,realEstateTypeId,locationZone,isForSale,isForRent,onSuccess,onFailed,userContext); }
ajax.poldo.it.AjaxRealEstateService.GetZones= function(locationId,onSuccess,onFailed,userContext) {ajax.poldo.it.AjaxRealEstateService._staticInstance.GetZones(locationId,onSuccess,onFailed,userContext); }
ajax.poldo.it.AjaxRealEstateService.GetLocations= function(locationName,limit,onSuccess,onFailed,userContext) {ajax.poldo.it.AjaxRealEstateService._staticInstance.GetLocations(locationName,limit,onSuccess,onFailed,userContext); }
ajax.poldo.it.AjaxRealEstateService.GetAutocompleteLocations= function(q,limit,onSuccess,onFailed,userContext) {ajax.poldo.it.AjaxRealEstateService._staticInstance.GetAutocompleteLocations(q,limit,onSuccess,onFailed,userContext); }
ajax.poldo.it.AjaxRealEstateService.GetLocationZones= function(locationId,onSuccess,onFailed,userContext) {ajax.poldo.it.AjaxRealEstateService._staticInstance.GetLocationZones(locationId,onSuccess,onFailed,userContext); }
ajax.poldo.it.AjaxRealEstateService.GetGeoRss= function(searchType,locationId,realEstateTypeId,isForRent,isForSale,priceFrom,priceTo,areaFrom,areaTo,roomsFrom,roomsTo,locationZone,onlyWithMedias,onlyNewBuild,onSuccess,onFailed,userContext) {ajax.poldo.it.AjaxRealEstateService._staticInstance.GetGeoRss(searchType,locationId,realEstateTypeId,isForRent,isForSale,priceFrom,priceTo,areaFrom,areaTo,roomsFrom,roomsTo,locationZone,onlyWithMedias,onlyNewBuild,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('www.w3.org._2001.XMLSchema');
if (typeof(www.w3.org._2001.XMLSchema.long) === 'undefined') {
www.w3.org._2001.XMLSchema.long=gtc("long:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.long.registerClass('www.w3.org._2001.XMLSchema.long');
}
if (typeof(www.w3.org._2001.XMLSchema.boolean) === 'undefined') {
www.w3.org._2001.XMLSchema.boolean=gtc("boolean:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.boolean.registerClass('www.w3.org._2001.XMLSchema.boolean');
}
if (typeof(ajax.poldo.it.GetSearchCountResult) === 'undefined') {
ajax.poldo.it.GetSearchCountResult=gtc("GetSearchCountResult:http://ajax.poldo.it/");
ajax.poldo.it.GetSearchCountResult.registerClass('ajax.poldo.it.GetSearchCountResult');
}
if (typeof(www.w3.org._2001.XMLSchema.int) === 'undefined') {
www.w3.org._2001.XMLSchema.int=gtc("int:http://www.w3.org/2001/XMLSchema");
www.w3.org._2001.XMLSchema.int.registerClass('www.w3.org._2001.XMLSchema.int');
}

