Type.registerNamespace('RealEstateWeb');
RealEstateWeb.Service=function() {
RealEstateWeb.Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
RealEstateWeb.Service.prototype={
resetSession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(RealEstateWeb.Service.get_path(), 'resetSession',false,{},succeededCallback,failedCallback,userContext); },
MapSearch:function(sortOrder,streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,maxRows,startRow,type,succeededCallback, failedCallback, userContext) {
return this._invoke(RealEstateWeb.Service.get_path(), 'MapSearch',false,{sortOrder:sortOrder,streetName:streetName,lotSizeMin:lotSizeMin,lotSizeMax:lotSizeMax,neighborhood:neighborhood,aldDistrict:aldDistrict,maxRows:maxRows,startRow:startRow,type:type},succeededCallback,failedCallback,userContext); },
search:function(sortOrder,streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,maxRows,startRow,type,succeededCallback, failedCallback, userContext) {
return this._invoke(RealEstateWeb.Service.get_path(), 'search',false,{sortOrder:sortOrder,streetName:streetName,lotSizeMin:lotSizeMin,lotSizeMax:lotSizeMax,neighborhood:neighborhood,aldDistrict:aldDistrict,maxRows:maxRows,startRow:startRow,type:type},succeededCallback,failedCallback,userContext); },
count:function(streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,type,succeededCallback, failedCallback, userContext) {
return this._invoke(RealEstateWeb.Service.get_path(), 'count',false,{streetName:streetName,lotSizeMin:lotSizeMin,lotSizeMax:lotSizeMax,neighborhood:neighborhood,aldDistrict:aldDistrict,type:type},succeededCallback,failedCallback,userContext); }}
RealEstateWeb.Service.registerClass('RealEstateWeb.Service',Sys.Net.WebServiceProxy);
RealEstateWeb.Service._staticInstance = new RealEstateWeb.Service();
RealEstateWeb.Service.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; RealEstateWeb.Service._staticInstance._path = value; }
RealEstateWeb.Service.get_path = function() { return RealEstateWeb.Service._staticInstance._path; }
RealEstateWeb.Service.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); }
RealEstateWeb.Service._staticInstance._timeout = value; }
RealEstateWeb.Service.get_timeout = function() { 
return RealEstateWeb.Service._staticInstance._timeout; }
RealEstateWeb.Service.set_defaultUserContext = function(value) { 
RealEstateWeb.Service._staticInstance._userContext = value; }
RealEstateWeb.Service.get_defaultUserContext = function() { 
return RealEstateWeb.Service._staticInstance._userContext; }
RealEstateWeb.Service.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; RealEstateWeb.Service._staticInstance._succeeded = value; }
RealEstateWeb.Service.get_defaultSucceededCallback = function() { 
return RealEstateWeb.Service._staticInstance._succeeded; }
RealEstateWeb.Service.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; RealEstateWeb.Service._staticInstance._failed = value; }
RealEstateWeb.Service.get_defaultFailedCallback = function() { 
return RealEstateWeb.Service._staticInstance._failed; }
RealEstateWeb.Service.set_path("/realestate/database/Service.asmx");
RealEstateWeb.Service.resetSession= function(onSuccess,onFailed,userContext) {RealEstateWeb.Service._staticInstance.resetSession(onSuccess,onFailed,userContext); }
RealEstateWeb.Service.MapSearch= function(sortOrder,streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,maxRows,startRow,type,onSuccess,onFailed,userContext) {RealEstateWeb.Service._staticInstance.MapSearch(sortOrder,streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,maxRows,startRow,type,onSuccess,onFailed,userContext); }
RealEstateWeb.Service.search= function(sortOrder,streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,maxRows,startRow,type,onSuccess,onFailed,userContext) {RealEstateWeb.Service._staticInstance.search(sortOrder,streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,maxRows,startRow,type,onSuccess,onFailed,userContext); }
RealEstateWeb.Service.count= function(streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,type,onSuccess,onFailed,userContext) {RealEstateWeb.Service._staticInstance.count(streetName,lotSizeMin,lotSizeMax,neighborhood,aldDistrict,type,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('RealEstateWeb.Classes');
if (typeof(RealEstateWeb.Classes.MapItem) === 'undefined') {
RealEstateWeb.Classes.MapItem=gtc("RealEstateWeb.Classes.MapItem");
RealEstateWeb.Classes.MapItem.registerClass('RealEstateWeb.Classes.MapItem');
}
