Compare commits
3 Commits
we-demo-di
...
we-fix-bro
Author | SHA1 | Date | |
---|---|---|---|
d39f114d5c | |||
a0ff50ab23 | |||
ca1ca3884d |
@ -1,24 +1,11 @@
|
|||||||
/*
|
|
||||||
Denna klass är en modell för störningar.
|
|
||||||
*/
|
|
||||||
|
|
||||||
class Disruption {
|
class Disruption {
|
||||||
constructor(startTime, locations, departures) {
|
constructor(situationNumber, severity, title, affectedStopPoints) {
|
||||||
this.startTime = startTime;
|
this.situationNumber = situationNumber;
|
||||||
this.affectedLines = affectedLines;
|
this.severity = severity;
|
||||||
this.departures = departures;
|
this.title = title;
|
||||||
|
this.affectedStopPoints = affectedStopPoints;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
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;
|
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;
|
|
Reference in New Issue
Block a user