Fix 1of2
This commit is contained in:
parent
ca1ca3884d
commit
a0ff50ab23
@ -1,24 +0,0 @@
|
|||||||
/*
|
|
||||||
Denna klass är en modell för störningar.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class Disruption {
|
|
||||||
constructor(startTime, locations, departures) {
|
|
||||||
this.startTime = startTime;
|
|
||||||
this.affectedLines = affectedLines;
|
|
||||||
this.departures = departures;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
Från västtrafiks api ett element i listan av hållplatser ser ut som följande
|
|
||||||
"id": "string",
|
|
||||||
"lon": "string",
|
|
||||||
"idx": "string",
|
|
||||||
"weight": "string",
|
|
||||||
"name": "string",
|
|
||||||
"track": "string",
|
|
||||||
"lat": "string"
|
|
||||||
*/
|
|
||||||
|
|
||||||
export default Disruption;
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
class Disruption {
|
|
||||||
constructor(situationNumber, severity, title, affectedStopPoints) {
|
|
||||||
this.situationNumber = situationNumber;
|
|
||||||
this.severity = severity;
|
|
||||||
this.title = title;
|
|
||||||
this.affectedStopPoints = affectedStopPoints;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Disruption;
|
|
Loading…
Reference in New Issue
Block a user