Search in sources :

Example 1 with ApiFeedInfo

use of org.opentripplanner.api.model.ApiFeedInfo in project OpenTripPlanner by opentripplanner.

the class FeedInfoMapper method mapToApi.

public static ApiFeedInfo mapToApi(FeedInfo domain) {
    if (domain == null) {
        return null;
    }
    ApiFeedInfo api = new ApiFeedInfo();
    api.id = domain.getId();
    api.publisherName = domain.getPublisherName();
    api.publisherUrl = domain.getPublisherUrl();
    api.lang = domain.getLang();
    api.startDate = ServiceDateMapper.mapToApi(domain.getStartDate());
    api.endDate = ServiceDateMapper.mapToApi(domain.getEndDate());
    api.version = domain.getVersion();
    return api;
}
Also used : ApiFeedInfo(org.opentripplanner.api.model.ApiFeedInfo)

Aggregations

ApiFeedInfo (org.opentripplanner.api.model.ApiFeedInfo)1