org.entur.gbfs.mapper.VehicleStatusAdditionalMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gbfs-mapper-java Show documentation
Show all versions of gbfs-mapper-java Show documentation
Enables mapping between different versions of GBFS (bidirectional)
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);
}