Hafas: Set clientType by default.

This commit is contained in:
Andreas Schildbach 2015-06-30 17:38:18 +02:00
parent de5db3cb98
commit f12c9db7e9
3 changed files with 1 additions and 3 deletions

View file

@ -96,7 +96,7 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
protected final String queryEndpoint;
private final int numProductBits;
private @Nullable String accessId = null;
private @Nullable String clientType = null;
private @Nullable String clientType = "ANDROID";
private Charset jsonGetStopsEncoding;
private boolean jsonGetStopsUseWeight = true;
private Charset jsonNearbyLocationsEncoding;

View file

@ -35,7 +35,6 @@ public final class BahnProvider extends AbstractHafasProvider
{
super(NetworkId.DB, API_BASE_STATION_BOARD + "bhftafel.exe/dn", API_BASE + "ajax-getstop.exe/dn", API_BASE + "query.exe/dn", 14);
setClientType("ANDROID");
setStationBoardHasStationTable(false);
setJsonGetStopsUseWeight(false);
}

View file

@ -40,7 +40,6 @@ public class SeProvider extends AbstractHafasProvider
{
super(NetworkId.SE, API_BASE + "stboard.exe/sn", API_BASE + "ajax-getstop.exe/sny", API_BASE + "query.exe/sn", 14, Charsets.UTF_8);
setClientType("ANDROID");
setUseIso8601(true);
setStationBoardHasStationTable(false);
setStationBoardCanDoEquivs(false);