Files
sumoc-backend/src/main/java/SuMoC/backend/carrousel/dto/RegularTripAlternativeContext.java
T
neuhauss f961b3c2b3
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
add regular trip notifications to carrousel system
2026-02-05 19:33:55 +01:00

27 lines
1.3 KiB
Java

package SuMoC.backend.carrousel.dto;
import SuMoC.backend.carrousel.enums.CarrouselCandidateType;
import SuMoC.backend.geocoding.AddressDTO;
import SuMoC.backend.regulartrip.dtos.MinimalDetectedRegularTripDTO;
import SuMoC.backend.routing.dtos.RouteDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
@Getter
public class RegularTripAlternativeContext extends RouteAlternativeContext {
private final MinimalDetectedRegularTripDTO detectedRegularTrip;
@Schema(description = "The address of the departure h3 center cell. Note that this is not necessarily the actual departure location of the user, but suburb etc. should match.")
private final AddressDTO departureCenter;
@Schema(description = "The address of the arrival h3 center cell. Note that this is not necessarily the actual arrival location of the user, but suburb etc. should match.")
private final AddressDTO arrivalCenter;
public RegularTripAlternativeContext(RouteDTO alternative, MinimalDetectedRegularTripDTO detectedRegularTrip, AddressDTO departureCenter, AddressDTO arrivalCenter) {
super(alternative, CarrouselCandidateType.REGULAR_TRIP_ALTERNATIVE);
this.detectedRegularTrip = detectedRegularTrip;
this.departureCenter = departureCenter;
this.arrivalCenter = arrivalCenter;
}
}