Add and update classes for client-side data management
This commit is contained in:
@ -2,17 +2,17 @@
|
||||
Denna klass är en modell för avgångar.
|
||||
|
||||
lineName : String (Linjenamnet)
|
||||
destination : String (Exempelvis "Mot Heden")
|
||||
finalStop : Stop (Ändhållplats)
|
||||
time : String (Avgångstid)
|
||||
info : String (Trafikinformation)
|
||||
trafficInfo : String (Trafikinformation)
|
||||
*/
|
||||
|
||||
class Departure {
|
||||
constructor(lineName, destination, time, info) {
|
||||
constructor(lineName, finalStop, time, trafficInfo) {
|
||||
this.lineName = lineName;
|
||||
this.destination = destination;
|
||||
this.finalStop = finalStop;
|
||||
this.time = time;
|
||||
this.info = info;
|
||||
this.trafficInfo = trafficInfo;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user