var SchoolService=function() {
SchoolService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
SchoolService.prototype={
GetSchoolsInRect:function(topLeft_Latitude,topLeft_Longitude,bottomRight_Latitude,bottomRight_Longitude,CenterPointLatitude,CenterPointLongitude,schoolType,radius,succeededCallback, failedCallback, userContext) {
return this._invoke(SchoolService.get_path(), 'GetSchoolsInRect',false,{topLeft_Latitude:topLeft_Latitude,topLeft_Longitude:topLeft_Longitude,bottomRight_Latitude:bottomRight_Latitude,bottomRight_Longitude:bottomRight_Longitude,CenterPointLatitude:CenterPointLatitude,CenterPointLongitude:CenterPointLongitude,schoolType:schoolType,radius:radius},succeededCallback,failedCallback,userContext); },
GetSchoolsByName:function(SchoolName,succeededCallback, failedCallback, userContext) {
return this._invoke(SchoolService.get_path(), 'GetSchoolsByName',false,{SchoolName:SchoolName},succeededCallback,failedCallback,userContext); },
GetSchoolsForCompare:function(schoolIdString,succeededCallback, failedCallback, userContext) {
return this._invoke(SchoolService.get_path(), 'GetSchoolsForCompare',false,{schoolIdString:schoolIdString},succeededCallback,failedCallback,userContext); }}
SchoolService.registerClass('SchoolService',Sys.Net.WebServiceProxy);
SchoolService._staticInstance = new SchoolService();
SchoolService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; SchoolService._staticInstance._path = value; }
SchoolService.get_path = function() { return SchoolService._staticInstance._path; }
SchoolService.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); }
SchoolService._staticInstance._timeout = value; }
SchoolService.get_timeout = function() { 
return SchoolService._staticInstance._timeout; }
SchoolService.set_defaultUserContext = function(value) { 
SchoolService._staticInstance._userContext = value; }
SchoolService.get_defaultUserContext = function() { 
return SchoolService._staticInstance._userContext; }
SchoolService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; SchoolService._staticInstance._succeeded = value; }
SchoolService.get_defaultSucceededCallback = function() { 
return SchoolService._staticInstance._succeeded; }
SchoolService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; SchoolService._staticInstance._failed = value; }
SchoolService.get_defaultFailedCallback = function() { 
return SchoolService._staticInstance._failed; }
SchoolService.set_path("/SchoolService.asmx");
SchoolService.GetSchoolsInRect= function(topLeft_Latitude,topLeft_Longitude,bottomRight_Latitude,bottomRight_Longitude,CenterPointLatitude,CenterPointLongitude,schoolType,radius,onSuccess,onFailed,userContext) {SchoolService._staticInstance.GetSchoolsInRect(topLeft_Latitude,topLeft_Longitude,bottomRight_Latitude,bottomRight_Longitude,CenterPointLatitude,CenterPointLongitude,schoolType,radius,onSuccess,onFailed,userContext); }
SchoolService.GetSchoolsByName= function(SchoolName,onSuccess,onFailed,userContext) {SchoolService._staticInstance.GetSchoolsByName(SchoolName,onSuccess,onFailed,userContext); }
SchoolService.GetSchoolsForCompare= function(schoolIdString,onSuccess,onFailed,userContext) {SchoolService._staticInstance.GetSchoolsForCompare(schoolIdString,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('CaGov.SchoolFinder.DataAccess.BLL');
if (typeof(CaGov.SchoolFinder.DataAccess.BLL.School) === 'undefined') {
CaGov.SchoolFinder.DataAccess.BLL.School=gtc("CaGov.SchoolFinder.DataAccess.BLL.School");
CaGov.SchoolFinder.DataAccess.BLL.School.registerClass('CaGov.SchoolFinder.DataAccess.BLL.School');
}
