mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
get rid of Status.NO_INFO
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@428 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
289545f9f2
commit
29fd4249eb
5 changed files with 13 additions and 5 deletions
|
@ -20,6 +20,7 @@ package de.schildbach.pte;
|
|||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.List;
|
||||
|
@ -123,7 +124,8 @@ public class SbbProvider extends AbstractHafasProvider
|
|||
{
|
||||
// messages
|
||||
if (mHeadCoarse.group(3) != null)
|
||||
return new QueryDeparturesResult(Status.NO_INFO, Integer.parseInt(stationId));
|
||||
return new QueryDeparturesResult(new Location(LocationType.STATION, Integer.parseInt(stationId), null),
|
||||
Collections.<Departure> emptyList(), null);
|
||||
else if (mHeadCoarse.group(5) != null)
|
||||
return new QueryDeparturesResult(Status.INVALID_STATION, Integer.parseInt(stationId));
|
||||
else if (mHeadCoarse.group(6) != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue