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:
@@ -1,18 +1,20 @@
|
||||
package SuMoC.backend.routing.dtos;
|
||||
|
||||
import SuMoC.backend.trip.Modality;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* This DTO represents the user preferences for routing / alternative route suggestions.
|
||||
* Provides default values for all fields.
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Schema(description = "This DTO represents the user preferences for routing / alternative route suggestions.")
|
||||
public class RoutingPreferencesDTO {
|
||||
private boolean preferPhysicalActivity = false;
|
||||
private List<Modality> excludedModalities = List.of();
|
||||
private boolean considerWeatherConditions = true;
|
||||
private List<Modality> modalitiesToConsider = new ArrayList<>(
|
||||
List.of(Modality.WALK, Modality.BIKE, Modality.ESCOOTER, Modality.BUS, Modality.TRAM, Modality.TRAIN)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user