19 lines
337 B
JavaScript
19 lines
337 B
JavaScript
//Object Constructor
|
|
function Trip(tripId = '', routeId = '') {
|
|
this.tripId = tripId;
|
|
this.routeId = routeId;
|
|
};
|
|
|
|
|
|
//Object Constructor
|
|
function TripUpdate(trip = null, timestamp = 0, delay = 0) {
|
|
this.trip = trip;
|
|
this.timestamp = timestamp;
|
|
this.delay = delay;
|
|
};
|
|
|
|
module.exports={
|
|
Trip,
|
|
TripUpdate
|
|
};
|