implemented alternative carrousel system, already working with alternative notifications for ad hoc alternatives

This commit is contained in:
2026-02-05 18:06:23 +01:00
parent b60e900e24
commit 99b5882c82
19 changed files with 315 additions and 2 deletions
@@ -1,6 +1,8 @@
package SuMoC.backend.routing.dtos;
import SuMoC.backend.trip.Modality;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
@@ -11,6 +13,11 @@ import lombok.Setter;
@Setter
@NoArgsConstructor
@AllArgsConstructor
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
@JsonSubTypes({
@JsonSubTypes.Type(value = TransitStepDTO.class, name = "transit"),
@JsonSubTypes.Type(value = StepDTO.class, name = "step")
})
@Schema(description = "A single step within a suggested alternative route.")
public class StepDTO {
private Modality modality;