diff --git a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/RiderCategory.java b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/RiderCategory.java index ba0f33e9..b285ccab 100644 --- a/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/RiderCategory.java +++ b/onebusaway-gtfs/src/main/java/org/onebusaway/gtfs/model/RiderCategory.java @@ -17,6 +17,7 @@ import org.onebusaway.csv_entities.schema.annotations.CsvField; import org.onebusaway.csv_entities.schema.annotations.CsvFields; +import org.onebusaway.gtfs.annotations.Experimental; import org.onebusaway.gtfs.serialization.mappings.DefaultAgencyIdFieldMappingFactory; /** @@ -27,20 +28,30 @@ public final class RiderCategory extends IdentityBean { public static final int MISSING_VALUE = -999; + @Experimental(proposedBy = "https://github.com/google/transit/pull/511") @CsvField(name = "rider_category_id", mapping = DefaultAgencyIdFieldMappingFactory.class) private AgencyAndId id; + + @Experimental(proposedBy = "https://github.com/google/transit/pull/511") @CsvField(name = "rider_category_name", optional = false) private String name; /** * 0 = not default category, 1 = default category */ + @Experimental(proposedBy = "https://github.com/google/transit/pull/511") @CsvField(optional = true, defaultValue = "0") private int isDefaultFareCategory = 0; + + @Deprecated @CsvField(optional = true) private int minAge = MISSING_VALUE; + + @Deprecated @CsvField(optional = true) private int maxAge = MISSING_VALUE; + + @Experimental(proposedBy = "https://github.com/google/transit/pull/511") @CsvField(optional = true) private String eligibilityUrl;