Type.registerNamespace('RealtyLogic.Mapping');
RealtyLogic.Mapping.MapService=function() {
RealtyLogic.Mapping.MapService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RealtyLogic.Mapping.MapService.prototype={
GetMapPoints:function(NWLat,NWLong,SELat,SeLong,ListingID,zoomLevel,bSearchForOffices,types,succeededCallback, failedCallback, userContext) {
return this._invoke(RealtyLogic.Mapping.MapService.get_path(), 'GetMapPoints',true,{NWLat:NWLat,NWLong:NWLong,SELat:SELat,SeLong:SeLong,ListingID:ListingID,zoomLevel:zoomLevel,bSearchForOffices:bSearchForOffices,types:types},succeededCallback,failedCallback,userContext); },
GetMapPointsForSearch:function(NWLat,NWLong,SELat,SeLong,zoomLevel,ListingType,listingcompanyid,MinSQFT,MinPrice,MaxPrice,MinBedrooms,minbathrooms,bSearchForOffices,types,succeededCallback, failedCallback, userContext) {
return this._invoke(RealtyLogic.Mapping.MapService.get_path(), 'GetMapPointsForSearch',true,{NWLat:NWLat,NWLong:NWLong,SELat:SELat,SeLong:SeLong,zoomLevel:zoomLevel,ListingType:ListingType,listingcompanyid:listingcompanyid,MinSQFT:MinSQFT,MinPrice:MinPrice,MaxPrice:MaxPrice,MinBedrooms:MinBedrooms,minbathrooms:minbathrooms,bSearchForOffices:bSearchForOffices,types:types},succeededCallback,failedCallback,userContext); }}
RealtyLogic.Mapping.MapService.registerClass('RealtyLogic.Mapping.MapService',Sys.Net.WebServiceProxy);
RealtyLogic.Mapping.MapService._staticInstance = new RealtyLogic.Mapping.MapService();
RealtyLogic.Mapping.MapService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; RealtyLogic.Mapping.MapService._staticInstance._path = value; }
RealtyLogic.Mapping.MapService.get_path = function() { return RealtyLogic.Mapping.MapService._staticInstance._path; }
RealtyLogic.Mapping.MapService.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); }
RealtyLogic.Mapping.MapService._staticInstance._timeout = value; }
RealtyLogic.Mapping.MapService.get_timeout = function() { 
return RealtyLogic.Mapping.MapService._staticInstance._timeout; }
RealtyLogic.Mapping.MapService.set_defaultUserContext = function(value) { 
RealtyLogic.Mapping.MapService._staticInstance._userContext = value; }
RealtyLogic.Mapping.MapService.get_defaultUserContext = function() { 
return RealtyLogic.Mapping.MapService._staticInstance._userContext; }
RealtyLogic.Mapping.MapService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; RealtyLogic.Mapping.MapService._staticInstance._succeeded = value; }
RealtyLogic.Mapping.MapService.get_defaultSucceededCallback = function() { 
return RealtyLogic.Mapping.MapService._staticInstance._succeeded; }
RealtyLogic.Mapping.MapService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; RealtyLogic.Mapping.MapService._staticInstance._failed = value; }
RealtyLogic.Mapping.MapService.get_defaultFailedCallback = function() { 
return RealtyLogic.Mapping.MapService._staticInstance._failed; }
RealtyLogic.Mapping.MapService.set_path("/OwnersReport/MapService.asmx");
RealtyLogic.Mapping.MapService.GetMapPoints= function(NWLat,NWLong,SELat,SeLong,ListingID,zoomLevel,bSearchForOffices,types,onSuccess,onFailed,userContext) {RealtyLogic.Mapping.MapService._staticInstance.GetMapPoints(NWLat,NWLong,SELat,SeLong,ListingID,zoomLevel,bSearchForOffices,types,onSuccess,onFailed,userContext); }
RealtyLogic.Mapping.MapService.GetMapPointsForSearch= function(NWLat,NWLong,SELat,SeLong,zoomLevel,ListingType,listingcompanyid,MinSQFT,MinPrice,MaxPrice,MinBedrooms,minbathrooms,bSearchForOffices,types,onSuccess,onFailed,userContext) {RealtyLogic.Mapping.MapService._staticInstance.GetMapPointsForSearch(NWLat,NWLong,SELat,SeLong,zoomLevel,ListingType,listingcompanyid,MinSQFT,MinPrice,MaxPrice,MinBedrooms,minbathrooms,bSearchForOffices,types,onSuccess,onFailed,userContext); }
