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

org.entur.gbfs.mapper.StationStatusAdditionalMapper 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 StationStatusAdditionalMapper {
    @Mapping(target = "numVehiclesAvailable", source = "numBikesAvailable")
    @Mapping(target = "numVehiclesDisabled", source = "numBikesDisabled")
    abstract org.mobilitydata.gbfs.v3_0.station_status.GBFSStation mapStation(org.mobilitydata.gbfs.v2_3.station_status.GBFSStation source);

    @InheritInverseConfiguration
    abstract org.mobilitydata.gbfs.v2_3.station_status.GBFSStation mapStationInverse(org.mobilitydata.gbfs.v3_0.station_status.GBFSStation source);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy