From 3e1e7afe5a5a68d5a29db01d7d579699bce7db00 Mon Sep 17 00:00:00 2001 From: deka91 Date: Wed, 19 Nov 2025 16:05:57 +0100 Subject: [PATCH] Add length property to TrackSectionDto --- .../ojp/data/dto/response/tir/leg/TrackSectionDto.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/src/main/java/ch/opentransportdata/ojp/data/dto/response/tir/leg/TrackSectionDto.kt b/sdk/src/main/java/ch/opentransportdata/ojp/data/dto/response/tir/leg/TrackSectionDto.kt index 29c36bd..fd38c6e 100644 --- a/sdk/src/main/java/ch/opentransportdata/ojp/data/dto/response/tir/leg/TrackSectionDto.kt +++ b/sdk/src/main/java/ch/opentransportdata/ojp/data/dto/response/tir/leg/TrackSectionDto.kt @@ -14,10 +14,10 @@ import nl.adaptivity.xmlutil.serialization.XmlSerialName @Serializable @XmlSerialName("TrackSection", OJP_NAME_SPACE, "") data class TrackSectionDto( - //todo: check if needed or can be summarized -// val trackSectionStart: TrackSectionStopPlaceRef?, -// val trackSectionEnd: TrackSectionStopPlaceRef?, @XmlElement(true) @XmlSerialName("LinkProjection", OJP_NAME_SPACE, "") - val linkProjection: LinearShapeDto? = null + val linkProjection: LinearShapeDto? = null, + @XmlElement(true) + @XmlSerialName("Length", OJP_NAME_SPACE, "") + val length: Int? = null ) : Parcelable \ No newline at end of file