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

org.opentripplanner.api.mapping.ContactInfoMapper Maven / Gradle / Ivy

package org.opentripplanner.api.mapping;

import org.opentripplanner.api.model.ApiContactInfo;
import org.opentripplanner.model.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 - 2024 Weber Informatics LLC | Privacy Policy