Exemple #1
0
 public ArrivalBundle(BusStop stop, BusRoute bus, bool live)
 {
     this.Stop = stop;
     this.Bus  = bus;
     this.Live = live;
     this.CommonDestination = bus.Long_Name;
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 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;
 }
Exemple #6
0
 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;
 }
Exemple #7
0
 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;
 }