public bool TryFindStop(StopSpecification find, out ResolvedServiceStop stop) { if (Details.TryFindStop(find, out var found)) { stop = new ResolvedServiceStop(this, found); return(true); } stop = null; return(false); }
public bool TryFindStop(StopSpecification find, out ScheduleLocation stop) { stop = Locations.FirstOrDefault(l => l.IsStopAt(find)); return(stop != default); }
public override bool IsStopAt(StopSpecification spec) { return(false); }
public abstract bool IsStopAt(StopSpecification spec);
private bool IsAt(StopSpecification spec) { return(spec.UseDeparture ? IsDeparture(spec.Time) : IsArrival(spec.Time)); }
public override bool IsStopAt(StopSpecification spec) { return(IsStopAt(spec.Location) && HasAdvertisedTime(spec.UseDeparture) && IsAt(spec)); }