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

org.entur.gbfs.mapper.VehicleStatusAdditionalMapper Maven / Gradle / Ivy

There is a newer version: 2.0.16
Show newest version
package org.entur.gbfs.mapper;

import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(
        uses = {
                DateMapper.class
        }
)
public abstract class  VehicleStatusAdditionalMapper {

    @VehicleStatusDataMapper
    @Mapping(target = "bikes", source = "vehicles")
    abstract org.mobilitydata.gbfs.v2_3.free_bike_status.GBFSData mapData(org.mobilitydata.gbfs.v3_0.vehicle_status.GBFSData source);

    @VehicleStatusDataMapper
    @InheritInverseConfiguration
    abstract org.mobilitydata.gbfs.v3_0.vehicle_status.GBFSData mapDataInverse(org.mobilitydata.gbfs.v2_3.free_bike_status.GBFSData source);

    @Mapping(target = "bikeId", source = "vehicleId")
    abstract org.mobilitydata.gbfs.v2_3.free_bike_status.GBFSBike mapVehicle(org.mobilitydata.gbfs.v3_0.vehicle_status.GBFSVehicle source);

    @InheritInverseConfiguration
    abstract org.mobilitydata.gbfs.v3_0.vehicle_status.GBFSVehicle mapVehicleInverse(org.mobilitydata.gbfs.v2_3.free_bike_status.GBFSBike source);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy