Type.registerNamespace('MvcApplication');
MvcApplication.Schools=function() {
MvcApplication.Schools.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MvcApplication.Schools.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MvcApplication.Schools._staticInstance.get_path();},
GetMetroByCity:function(cityID,succeededCallback, failedCallback, userContext) {
/// <param name="cityID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetMetroByCity',false,{cityID:cityID},succeededCallback,failedCallback,userContext); },
GetSchoolsByCity:function(cityID,succeededCallback, failedCallback, userContext) {
/// <param name="cityID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetSchoolsByCity',false,{cityID:cityID},succeededCallback,failedCallback,userContext); },
GetSchoolsByMetro:function(metroID,succeededCallback, failedCallback, userContext) {
/// <param name="metroID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetSchoolsByMetro',false,{metroID:metroID},succeededCallback,failedCallback,userContext); }}
MvcApplication.Schools.registerClass('MvcApplication.Schools',Sys.Net.WebServiceProxy);
MvcApplication.Schools._staticInstance = new MvcApplication.Schools();
MvcApplication.Schools.set_path = function(value) {
MvcApplication.Schools._staticInstance.set_path(value); }
MvcApplication.Schools.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return MvcApplication.Schools._staticInstance.get_path();}
MvcApplication.Schools.set_timeout = function(value) {
MvcApplication.Schools._staticInstance.set_timeout(value); }
MvcApplication.Schools.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return MvcApplication.Schools._staticInstance.get_timeout(); }
MvcApplication.Schools.set_defaultUserContext = function(value) { 
MvcApplication.Schools._staticInstance.set_defaultUserContext(value); }
MvcApplication.Schools.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return MvcApplication.Schools._staticInstance.get_defaultUserContext(); }
MvcApplication.Schools.set_defaultSucceededCallback = function(value) { 
 MvcApplication.Schools._staticInstance.set_defaultSucceededCallback(value); }
MvcApplication.Schools.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return MvcApplication.Schools._staticInstance.get_defaultSucceededCallback(); }
MvcApplication.Schools.set_defaultFailedCallback = function(value) { 
MvcApplication.Schools._staticInstance.set_defaultFailedCallback(value); }
MvcApplication.Schools.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return MvcApplication.Schools._staticInstance.get_defaultFailedCallback(); }
MvcApplication.Schools.set_path("/Schools.asmx");
MvcApplication.Schools.GetMetroByCity= function(cityID,onSuccess,onFailed,userContext) {
/// <param name="cityID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MvcApplication.Schools._staticInstance.GetMetroByCity(cityID,onSuccess,onFailed,userContext); }
MvcApplication.Schools.GetSchoolsByCity= function(cityID,onSuccess,onFailed,userContext) {
/// <param name="cityID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MvcApplication.Schools._staticInstance.GetSchoolsByCity(cityID,onSuccess,onFailed,userContext); }
MvcApplication.Schools.GetSchoolsByMetro= function(metroID,onSuccess,onFailed,userContext) {
/// <param name="metroID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
MvcApplication.Schools._staticInstance.GetSchoolsByMetro(metroID,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('DataModel');
if (typeof(DataModel.ShortMetro) === 'undefined') {
DataModel.ShortMetro=gtc("DataModel.ShortMetro");
DataModel.ShortMetro.registerClass('DataModel.ShortMetro');
}
if (typeof(DataModel.ShortSchool) === 'undefined') {
DataModel.ShortSchool=gtc("DataModel.ShortSchool");
DataModel.ShortSchool.registerClass('DataModel.ShortSchool');
}

