org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLRouteTypeModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.ext.legacygraphqlapi.model;
import org.opentripplanner.model.Agency;
/**
* Class for route types. If agency is defined, the object is the route for the specific agency.
*/
public class LegacyGraphQLRouteTypeModel {
/**
* If defined, this is the route type is only relevant for the agency.
*/
private final Agency agency;
/**
* Route type (GTFS).
*/
private final int routeType;
/**
* Route type only covers routes of this feed.
*/
private final String feedId;
public LegacyGraphQLRouteTypeModel(
Agency agency,
int routeType,
String feedId
) {
this.agency = agency;
this.routeType = routeType;
this.feedId = feedId;
}
public Agency getAgency() {
return agency;
}
public int getRouteType() {
return routeType;
}
public String getFeedId() {
return feedId;
}
}