update alternative routing dto structure according to meeting results
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package SuMoC.backend.routing.dtos;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.annotation.Nullable;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Schema(description = "This DTO represents a request for alternative routes between an origin and a destination.")
|
||||
public class RoutingAlternativeRequestDTO {
|
||||
@NotNull
|
||||
private String originLat;
|
||||
@NotNull
|
||||
private String originLon;
|
||||
@NotNull
|
||||
private String destinationLat;
|
||||
@NotNull
|
||||
private String destinationLon;
|
||||
@NotNull
|
||||
private LocalDateTime arrivalTime;
|
||||
@NotNull
|
||||
private LocalDateTime departureTime; // We need both times to calculate duration to compare alternatives
|
||||
@Nullable
|
||||
private RoutingPreferencesDTO routingPreferencesDTO;
|
||||
}
|
||||
Reference in New Issue
Block a user