
org.opentripplanner.api.mapping.ContactInfoMapper 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.api.mapping;
import org.opentripplanner.api.model.ApiContactInfo;
import org.opentripplanner.transit.model.organization.ContactInfo;
public class ContactInfoMapper {
static ApiContactInfo mapContactInfo(ContactInfo info) {
if (info == null) {
return null;
}
return new ApiContactInfo(
info.getContactPerson(),
info.getPhoneNumber(),
info.geteMail(),
info.getFaxNumber(),
info.getInfoUrl(),
info.getBookingUrl(),
info.getAdditionalDetails()
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy