mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
get rid of currentTime
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@182 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
f8ebbc4054
commit
e6c677f72a
9 changed files with 9 additions and 14 deletions
|
@ -548,7 +548,7 @@ public final class BahnProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, stationId, location, currentTime, departures);
|
return new QueryDeparturesResult(uri, stationId, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -683,7 +683,7 @@ public class MvvProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, stationId, location, currentTime, departures);
|
return new QueryDeparturesResult(uri, stationId, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -526,7 +526,7 @@ public class OebbProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, locationId, location, null, departures);
|
return new QueryDeparturesResult(uri, locationId, location, departures);
|
||||||
}
|
}
|
||||||
catch (final JSONException x)
|
catch (final JSONException x)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
package de.schildbach.pte;
|
package de.schildbach.pte;
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,17 +33,14 @@ public final class QueryDeparturesResult
|
||||||
public final Status status;
|
public final Status status;
|
||||||
public final int locationId;
|
public final int locationId;
|
||||||
public final String location;
|
public final String location;
|
||||||
public final Date currentTime;
|
|
||||||
public final List<Departure> departures;
|
public final List<Departure> departures;
|
||||||
|
|
||||||
public QueryDeparturesResult(final String uri, final int locationId, final String location, final Date currentTime,
|
public QueryDeparturesResult(final String uri, final int locationId, final String location, final List<Departure> departures)
|
||||||
final List<Departure> departures)
|
|
||||||
{
|
{
|
||||||
this.uri = uri;
|
this.uri = uri;
|
||||||
this.status = Status.OK;
|
this.status = Status.OK;
|
||||||
this.locationId = locationId;
|
this.locationId = locationId;
|
||||||
this.location = location;
|
this.location = location;
|
||||||
this.currentTime = currentTime;
|
|
||||||
this.departures = departures;
|
this.departures = departures;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +50,6 @@ public final class QueryDeparturesResult
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.locationId = 0;
|
this.locationId = 0;
|
||||||
this.location = null;
|
this.location = null;
|
||||||
this.currentTime = null;
|
|
||||||
this.departures = null;
|
this.departures = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -580,7 +580,7 @@ public class RmvProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, stationId, location, currentTime, departures);
|
return new QueryDeparturesResult(uri, stationId, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -521,7 +521,7 @@ public class SbbProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, locationId, location, currentTime, departures);
|
return new QueryDeparturesResult(uri, locationId, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -186,7 +186,7 @@ public class SncbProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, 0, location, currentTime, departures);
|
return new QueryDeparturesResult(uri, 0, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -144,7 +144,7 @@ public class TflProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, 0, location, null, departures);
|
return new QueryDeparturesResult(uri, 0, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -600,7 +600,7 @@ public final class VbbProvider implements NetworkProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new QueryDeparturesResult(uri, stationId, location, currentTime, departures);
|
return new QueryDeparturesResult(uri, stationId, location, departures);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue