Add Stop and Departure classes

This commit is contained in:
André Wahlberg
2020-11-26 21:41:32 +01:00
parent 9c21062fdc
commit 7cde8a62ba
2 changed files with 36 additions and 0 deletions

19
src/classes/Departure.js Normal file
View File

@ -0,0 +1,19 @@
/*
Denna klass är en modell för avgångar.
lineName : String (Linjenamnet)
destination : String (Exempelvis "Mot Heden")
time : String (Avgångstid)
info : String (Trafikinformation)
*/
class Departure {
constructor(lineName, destination, time, info) {
this.lineName = lineName;
this.destination = destination;
this.time = time;
this.info = info;
}
}
export default Departure;