mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
fixed missing cablecar
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@31 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
703b916ba7
commit
e4ed124706
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,7 @@ package de.schildbach.pte;
|
|||
*/
|
||||
public enum Product
|
||||
{
|
||||
HIGH_SPEED_TRAIN, REGIONAL_TRAIN, SUBURBAN_TRAIN, SUBWAY, TRAM, BUS, FERRY;
|
||||
HIGH_SPEED_TRAIN, REGIONAL_TRAIN, SUBURBAN_TRAIN, SUBWAY, TRAM, BUS, FERRY, CABLECAR;
|
||||
|
||||
public static Product fromCode(char code)
|
||||
{
|
||||
|
@ -40,6 +40,8 @@ public enum Product
|
|||
return Product.BUS;
|
||||
else if (code == 'F')
|
||||
return Product.FERRY;
|
||||
else if (code == 'C')
|
||||
return Product.CABLECAR;
|
||||
else
|
||||
throw new IllegalArgumentException(Character.toString(code));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue