All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLRouteTypeModel Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy