LU: select all products by default

Public transport is free in Luxembourg.
This commit is contained in:
Andreas Schildbach 2022-09-20 14:23:46 +02:00
parent 889ceb5994
commit 6c1f9926d8

View file

@ -17,6 +17,7 @@
package de.schildbach.pte; package de.schildbach.pte;
import java.util.Set;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import de.schildbach.pte.dto.Product; import de.schildbach.pte.dto.Product;
@ -46,6 +47,11 @@ public class LuProvider extends AbstractHafasClientInterfaceProvider {
setApiAuthorization(apiAuthorization); setApiAuthorization(apiAuthorization);
} }
@Override
public Set<Product> defaultProducts() {
return Product.ALL;
}
@Override @Override
protected String[] splitStationName(final String name) { protected String[] splitStationName(final String name) {
final Matcher m = P_SPLIT_NAME_FIRST_COMMA.matcher(name); final Matcher m = P_SPLIT_NAME_FIRST_COMMA.matcher(name);