27 lines
1.3 KiB
Java
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;
|
|
}
|
|
|
|
}
|