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

org.opentripplanner.ext.transmodelapi.model.network.DestinationDisplayType Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.ext.transmodelapi.model.network;

import graphql.Scalars;
import graphql.schema.DataFetchingEnvironment;
import graphql.schema.GraphQLFieldDefinition;
import graphql.schema.GraphQLObjectType;

public class DestinationDisplayType {

  public static GraphQLObjectType create() {
    return GraphQLObjectType.newObject()
            .name("DestinationDisplay")
            .description("An advertised destination of a specific journey pattern, usually displayed on a head sign or at other on-board locations.")
            .field(GraphQLFieldDefinition.newFieldDefinition()
                    .name("frontText")
                    .description("Name of destination to show on front of vehicle.")
                    .type(Scalars.GraphQLString)
                    .dataFetcher(DataFetchingEnvironment::getSource)
                    .build())
            .build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy