public ArrivalBundle(BusStop stop, BusRoute bus, bool live) { this.Stop = stop; this.Bus = bus; this.Live = live; this.CommonDestination = bus.Long_Name; }
public void testCreateRoute() { BusRoute r = new BusRoute("Route 222 to Bridge to Nowhere"); Assert.AreEqual("Bridge to Nowhere", r.Long_Name); Assert.AreEqual("222", r.Short_Name); }
public Arrival(BusStop stop, BusRoute bus, DateTime time, string destination, bool live = false) { this.Stop = stop; this.Bus = bus; this.Time = time; this.Destination = destination; this.Live = live; }
public Arrival(BusStop stop, BusRoute bus, DateTime time, bool live = false) { this.Stop = stop; this.Bus = bus; this.Time = time; this.Live = live; Destination = bus.Long_Name; }
public ArrivalBundle(BusStop stop, BusRoute bus, List <DateTime> times, bool live = false) { this.Stop = stop; this.Bus = bus; this.Times = times; this.Live = live; this.CommonDestination = bus.Long_Name; }
public ArrivalBundle(Arrival firstArrival) { this.Bus = firstArrival.Bus; this.Stop = firstArrival.Stop; this.Live = firstArrival.Live; Times = new List <DateTime>(); Times.Add(firstArrival.Time); this.CommonDestination = firstArrival.Destination; }
public BusTrip(BusRoute myRoute, Destination origin, Destination destination, bool weekdays, TimeSpan originArrival, TimeSpan destArrival, bool weekends, bool holidays) { this.origin = origin; this.clockTimeOrigin = originArrival; this.clockTimeDestination = destArrival; this.destination = destination; OperatesHolidays = holidays; OperatesWeekdays = weekdays; OperatesWeekends = weekdays; }