implemented alternative carrousel system, already working with alternative notifications for ad hoc alternatives
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user