Type.registerNamespace('JSONRelay');
JSONRelay.IJSONRelay=function() {
JSONRelay.IJSONRelay.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
JSONRelay.IJSONRelay.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return JSONRelay.IJSONRelay._staticInstance.get_path();},
GetRoutesForMap:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetRoutesForMap',false,{},succeededCallback,failedCallback,userContext); },
GetMapVehiclePoints:function(routeIDString,succeededCallback, failedCallback, userContext) {
/// <param name="routeIDString" type="String">System.String</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(), 'GetMapVehiclePoints',false,{routeIDString:routeIDString},succeededCallback,failedCallback,userContext); },
GetMapVehiclePointsJSON:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetMapVehiclePointsJSON',false,{},succeededCallback,failedCallback,userContext); },
GetMapStopEstimates:function(routeIDString,succeededCallback, failedCallback, userContext) {
/// <param name="routeIDString" type="String">System.String</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(), 'GetMapStopEstimates',false,{routeIDString:routeIDString},succeededCallback,failedCallback,userContext); },
GetMapStopEstimatesJSON:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetMapStopEstimatesJSON',false,{},succeededCallback,failedCallback,userContext); },
GetRoutes:function(routeIDString,succeededCallback, failedCallback, userContext) {
/// <param name="routeIDString" type="String">System.String</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(), 'GetRoutes',false,{routeIDString:routeIDString},succeededCallback,failedCallback,userContext); },
GetStops:function(routeIDString,succeededCallback, failedCallback, userContext) {
/// <param name="routeIDString" type="String">System.String</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(), 'GetStops',false,{routeIDString:routeIDString},succeededCallback,failedCallback,userContext); },
GetMarkers:function(routeIDString,succeededCallback, failedCallback, userContext) {
/// <param name="routeIDString" type="String">System.String</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(), 'GetMarkers',false,{routeIDString:routeIDString},succeededCallback,failedCallback,userContext); }}
JSONRelay.IJSONRelay.registerClass('JSONRelay.IJSONRelay',Sys.Net.WebServiceProxy);
JSONRelay.IJSONRelay._staticInstance = new JSONRelay.IJSONRelay();
JSONRelay.IJSONRelay.set_path = function(value) {
JSONRelay.IJSONRelay._staticInstance.set_path(value); }
JSONRelay.IJSONRelay.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return JSONRelay.IJSONRelay._staticInstance.get_path();}
JSONRelay.IJSONRelay.set_timeout = function(value) {
JSONRelay.IJSONRelay._staticInstance.set_timeout(value); }
JSONRelay.IJSONRelay.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return JSONRelay.IJSONRelay._staticInstance.get_timeout(); }
JSONRelay.IJSONRelay.set_defaultUserContext = function(value) { 
JSONRelay.IJSONRelay._staticInstance.set_defaultUserContext(value); }
JSONRelay.IJSONRelay.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return JSONRelay.IJSONRelay._staticInstance.get_defaultUserContext(); }
JSONRelay.IJSONRelay.set_defaultSucceededCallback = function(value) { 
 JSONRelay.IJSONRelay._staticInstance.set_defaultSucceededCallback(value); }
JSONRelay.IJSONRelay.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return JSONRelay.IJSONRelay._staticInstance.get_defaultSucceededCallback(); }
JSONRelay.IJSONRelay.set_defaultFailedCallback = function(value) { 
JSONRelay.IJSONRelay._staticInstance.set_defaultFailedCallback(value); }
JSONRelay.IJSONRelay.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return JSONRelay.IJSONRelay._staticInstance.get_defaultFailedCallback(); }
JSONRelay.IJSONRelay.set_path("/Services/JSONRelay.svc");
JSONRelay.IJSONRelay.GetRoutesForMap= function(onSuccess,onFailed,userContext) {
/// <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>
JSONRelay.IJSONRelay._staticInstance.GetRoutesForMap(onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetMapVehiclePoints= function(routeIDString,onSuccess,onFailed,userContext) {
/// <param name="routeIDString" type="String">System.String</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>
JSONRelay.IJSONRelay._staticInstance.GetMapVehiclePoints(routeIDString,onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetMapVehiclePointsJSON= function(onSuccess,onFailed,userContext) {
/// <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>
JSONRelay.IJSONRelay._staticInstance.GetMapVehiclePointsJSON(onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetMapStopEstimates= function(routeIDString,onSuccess,onFailed,userContext) {
/// <param name="routeIDString" type="String">System.String</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>
JSONRelay.IJSONRelay._staticInstance.GetMapStopEstimates(routeIDString,onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetMapStopEstimatesJSON= function(onSuccess,onFailed,userContext) {
/// <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>
JSONRelay.IJSONRelay._staticInstance.GetMapStopEstimatesJSON(onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetRoutes= function(routeIDString,onSuccess,onFailed,userContext) {
/// <param name="routeIDString" type="String">System.String</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>
JSONRelay.IJSONRelay._staticInstance.GetRoutes(routeIDString,onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetStops= function(routeIDString,onSuccess,onFailed,userContext) {
/// <param name="routeIDString" type="String">System.String</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>
JSONRelay.IJSONRelay._staticInstance.GetStops(routeIDString,onSuccess,onFailed,userContext); }
JSONRelay.IJSONRelay.GetMarkers= function(routeIDString,onSuccess,onFailed,userContext) {
/// <param name="routeIDString" type="String">System.String</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>
JSONRelay.IJSONRelay._staticInstance.GetMarkers(routeIDString,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('datacontracts.ridesystems.net._2009._06');
if (typeof(datacontracts.ridesystems.net._2009._06.Route) === 'undefined') {
datacontracts.ridesystems.net._2009._06.Route=gtc("Route:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.Route.registerClass('datacontracts.ridesystems.net._2009._06.Route');
}
if (typeof(datacontracts.ridesystems.net._2009._06.SyncableObject) === 'undefined') {
datacontracts.ridesystems.net._2009._06.SyncableObject=gtc("SyncableObject:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.SyncableObject.registerClass('datacontracts.ridesystems.net._2009._06.SyncableObject');
}
if (typeof(datacontracts.ridesystems.net._2009._06.Comment) === 'undefined') {
datacontracts.ridesystems.net._2009._06.Comment=gtc("Comment:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.Comment.registerClass('datacontracts.ridesystems.net._2009._06.Comment');
}
if (typeof(datacontracts.ridesystems.net._2009._06.Landmark) === 'undefined') {
datacontracts.ridesystems.net._2009._06.Landmark=gtc("Landmark:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.Landmark.registerClass('datacontracts.ridesystems.net._2009._06.Landmark');
}
if (typeof(datacontracts.ridesystems.net._2009._06.Address) === 'undefined') {
datacontracts.ridesystems.net._2009._06.Address=gtc("Address:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.Address.registerClass('datacontracts.ridesystems.net._2009._06.Address');
}
if (typeof(datacontracts.ridesystems.net._2009._06.RouteStop) === 'undefined') {
datacontracts.ridesystems.net._2009._06.RouteStop=gtc("RouteStop:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.RouteStop.registerClass('datacontracts.ridesystems.net._2009._06.RouteStop');
}
if (typeof(datacontracts.ridesystems.net._2009._06.MapPoint) === 'undefined') {
datacontracts.ridesystems.net._2009._06.MapPoint=gtc("MapPoint:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.MapPoint.registerClass('datacontracts.ridesystems.net._2009._06.MapPoint');
}
if (typeof(datacontracts.ridesystems.net._2009._06.RouteStopEvent) === 'undefined') {
datacontracts.ridesystems.net._2009._06.RouteStopEvent=gtc("RouteStopEvent:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.RouteStopEvent.registerClass('datacontracts.ridesystems.net._2009._06.RouteStopEvent');
}
if (typeof(datacontracts.ridesystems.net._2009._06.RouteStopEventAudioFile) === 'undefined') {
datacontracts.ridesystems.net._2009._06.RouteStopEventAudioFile=gtc("RouteStopEventAudioFile:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.RouteStopEventAudioFile.registerClass('datacontracts.ridesystems.net._2009._06.RouteStopEventAudioFile');
}
if (typeof(datacontracts.ridesystems.net._2009._06.AudioFile) === 'undefined') {
datacontracts.ridesystems.net._2009._06.AudioFile=gtc("AudioFile:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.AudioFile.registerClass('datacontracts.ridesystems.net._2009._06.AudioFile');
}
if (typeof(datacontracts.ridesystems.net._2009._06.AssignedAddress) === 'undefined') {
datacontracts.ridesystems.net._2009._06.AssignedAddress=gtc("AssignedAddress:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.AssignedAddress.registerClass('datacontracts.ridesystems.net._2009._06.AssignedAddress');
}
if (typeof(datacontracts.ridesystems.net._2009._06.AddressType) === 'undefined') {
datacontracts.ridesystems.net._2009._06.AddressType=gtc("AddressType:http://DataContracts.RideSystems.net/2009/06/");
datacontracts.ridesystems.net._2009._06.AddressType.registerClass('datacontracts.ridesystems.net._2009._06.AddressType');
}
Type.registerNamespace('Ride.Business.Objects');
if (typeof(Ride.Business.Objects.EditableListOfCommentyFGFGVk8) === 'undefined') {
Ride.Business.Objects.EditableListOfCommentyFGFGVk8=gtc("EditableListOfCommentyFGFGVk8:http://schemas.datacontract.org/2004/07/Ride.Business.Objects");
Ride.Business.Objects.EditableListOfCommentyFGFGVk8.registerClass('Ride.Business.Objects.EditableListOfCommentyFGFGVk8');
}
if (typeof(Ride.Business.Objects.EditableListOfLandmarkyFGFGVk8) === 'undefined') {
Ride.Business.Objects.EditableListOfLandmarkyFGFGVk8=gtc("EditableListOfLandmarkyFGFGVk8:http://schemas.datacontract.org/2004/07/Ride.Business.Objects");
Ride.Business.Objects.EditableListOfLandmarkyFGFGVk8.registerClass('Ride.Business.Objects.EditableListOfLandmarkyFGFGVk8');
}
if (typeof(Ride.Business.Objects.EditableListOfMapPointyFGFGVk8) === 'undefined') {
Ride.Business.Objects.EditableListOfMapPointyFGFGVk8=gtc("EditableListOfMapPointyFGFGVk8:http://schemas.datacontract.org/2004/07/Ride.Business.Objects");
Ride.Business.Objects.EditableListOfMapPointyFGFGVk8.registerClass('Ride.Business.Objects.EditableListOfMapPointyFGFGVk8');
}
if (typeof(Ride.Business.Objects.EditableListOfRouteStopEventyFGFGVk8) === 'undefined') {
Ride.Business.Objects.EditableListOfRouteStopEventyFGFGVk8=gtc("EditableListOfRouteStopEventyFGFGVk8:http://schemas.datacontract.org/2004/07/Ride.Business.Objects");
Ride.Business.Objects.EditableListOfRouteStopEventyFGFGVk8.registerClass('Ride.Business.Objects.EditableListOfRouteStopEventyFGFGVk8');
}
if (typeof(Ride.Business.Objects.EditableListOfRouteStopyFGFGVk8) === 'undefined') {
Ride.Business.Objects.EditableListOfRouteStopyFGFGVk8=gtc("EditableListOfRouteStopyFGFGVk8:http://schemas.datacontract.org/2004/07/Ride.Business.Objects");
Ride.Business.Objects.EditableListOfRouteStopyFGFGVk8.registerClass('Ride.Business.Objects.EditableListOfRouteStopyFGFGVk8');
}
Type.registerNamespace('Ride.Business.Objects.Map.Vehicles');
if (typeof(Ride.Business.Objects.Map.Vehicles.Vehicle) === 'undefined') {
Ride.Business.Objects.Map.Vehicles.Vehicle=gtc("Vehicle:http://schemas.datacontract.org/2004/07/Ride.Business.Objects.Map.Vehicles");
Ride.Business.Objects.Map.Vehicles.Vehicle.registerClass('Ride.Business.Objects.Map.Vehicles.Vehicle');
}
Type.registerNamespace('Ride.Business.Objects.Map.Routes');
if (typeof(Ride.Business.Objects.Map.Routes.Route) === 'undefined') {
Ride.Business.Objects.Map.Routes.Route=gtc("Route:http://schemas.datacontract.org/2004/07/Ride.Business.Objects.Map.Routes");
Ride.Business.Objects.Map.Routes.Route.registerClass('Ride.Business.Objects.Map.Routes.Route');
}
if (typeof(Ride.Business.Objects.Map.Routes.RouteStop) === 'undefined') {
Ride.Business.Objects.Map.Routes.RouteStop=gtc("RouteStop:http://schemas.datacontract.org/2004/07/Ride.Business.Objects.Map.Routes");
Ride.Business.Objects.Map.Routes.RouteStop.registerClass('Ride.Business.Objects.Map.Routes.RouteStop');
}
if (typeof(Ride.Business.Objects.Map.Routes.RouteStopEstimate) === 'undefined') {
Ride.Business.Objects.Map.Routes.RouteStopEstimate=gtc("RouteStopEstimate:http://schemas.datacontract.org/2004/07/Ride.Business.Objects.Map.Routes");
Ride.Business.Objects.Map.Routes.RouteStopEstimate.registerClass('Ride.Business.Objects.Map.Routes.RouteStopEstimate');
}
Type.registerNamespace('datacontracts.ridesystems.net.Abbreviated._2009._06');
if (typeof(datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRoute) === 'undefined') {
datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRoute=gtc("SmartPhoneRoute:http://DataContracts.RideSystems.net/Abbreviated/2009/06/");
datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRoute.registerClass('datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRoute');
}
if (typeof(datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRouteStop) === 'undefined') {
datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRouteStop=gtc("SmartPhoneRouteStop:http://DataContracts.RideSystems.net/Abbreviated/2009/06/");
datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRouteStop.registerClass('datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneRouteStop');
}
if (typeof(datacontracts.ridesystems.net.Abbreviated._2009._06.MapPoint) === 'undefined') {
datacontracts.ridesystems.net.Abbreviated._2009._06.MapPoint=gtc("MapPoint:http://DataContracts.RideSystems.net/Abbreviated/2009/06/");
datacontracts.ridesystems.net.Abbreviated._2009._06.MapPoint.registerClass('datacontracts.ridesystems.net.Abbreviated._2009._06.MapPoint');
}
if (typeof(datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneLandmark) === 'undefined') {
datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneLandmark=gtc("SmartPhoneLandmark:http://DataContracts.RideSystems.net/Abbreviated/2009/06/");
datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneLandmark.registerClass('datacontracts.ridesystems.net.Abbreviated._2009._06.SmartPhoneLandmark');
}
if (typeof(Ride.Business.Objects.EventTriggerTypes) === 'undefined') {
Ride.Business.Objects.EventTriggerTypes = function() { throw Error.invalidOperation(); }
Ride.Business.Objects.EventTriggerTypes.prototype = {GPSTriggered: 1}
Ride.Business.Objects.EventTriggerTypes.registerEnum('Ride.Business.Objects.EventTriggerTypes', true);
}

