package app.vo { [Bindable] public class Stop extends Entity { public var rideId:int; public var pointId:int; public var mileage:Number; public var timeElapsed:uint; public var notes:String; public var ride:Ride; public var point:Point; public function Stop(state:*=null) { super(state); } public override function initialize(state:*):void { super.initialize(state); if (state != null) { this.rideId = state.rideId; this.pointId = state.pointId; this.mileage = state.mileage; this.timeElapsed = state.timeElapsed; this.notes = state.notes; } } public function toString():String { return (ride == null ? "Ride " + rideId : ride) + " (" + id + ")"; } } }