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

org.opentripplanner.apis.gtfs.datafetchers.SystemNoticeImpl Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.apis.gtfs.datafetchers;

import graphql.schema.DataFetcher;
import graphql.schema.DataFetchingEnvironment;
import org.opentripplanner.apis.gtfs.generated.GraphQLDataFetchers;
import org.opentripplanner.model.SystemNotice;

public class SystemNoticeImpl implements GraphQLDataFetchers.GraphQLSystemNotice {

  @Override
  public DataFetcher tag() {
    return environment -> getSource(environment).tag();
  }

  @Override
  public DataFetcher text() {
    return environment -> getSource(environment).text();
  }

  private SystemNotice getSource(DataFetchingEnvironment environment) {
    return environment.getSource();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy