Skip to content

Commit

Permalink
Update RiderCategory.java
Browse files Browse the repository at this point in the history
add experimental and deprecated annotations to RiderCategories fields
  • Loading branch information
sberkley committed Feb 12, 2025
1 parent 0c96467 commit 32042f2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -27,20 +28,30 @@ public final class RiderCategory extends IdentityBean<AgencyAndId> {

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;

Expand Down

0 comments on commit 32042f2

Please sign in to comment.