TripDto

@Xml(name = "Trip")
data class TripDto(@PropertyElement(name = "Id") val id: String, @PropertyElement(name = "Duration") val duration: Duration, @PropertyElement(name = "StartTime") val startTime: LocalDateTime, @PropertyElement(name = "EndTime") val endTime: LocalDateTime, @PropertyElement(name = "Transfers") val transfers: Int, @Element(name = "Leg") val legs: List<LegDto>, @PropertyElement(name = "Unplanned") val unplanned: Boolean?, @PropertyElement(name = "Delayed") val delayed: Boolean?, @PropertyElement(name = "Infeasible") val infeasible: Boolean?) : AbstractTripDto, Parcelable

Created by Michael Ruppen on 28.06.2024

Constructors

Link copied to clipboard
constructor(@PropertyElement(name = "Id") id: String, @PropertyElement(name = "Duration") duration: Duration, @PropertyElement(name = "StartTime") startTime: LocalDateTime, @PropertyElement(name = "EndTime") endTime: LocalDateTime, @PropertyElement(name = "Transfers") transfers: Int, @Element(name = "Leg") legs: List<LegDto>, @PropertyElement(name = "Unplanned") unplanned: Boolean?, @PropertyElement(name = "Delayed") delayed: Boolean?, @PropertyElement(name = "Infeasible") infeasible: Boolean?)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If the trip has TimedLegDto.isCancelled, isInfeasible or TimedLegDto.hasAnyPlatformChanges set to true, it is marked to have disruptions

Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

infeasible flag is also set when trip is cancelled. isInfeasible shows if the trip is infeasible but not cancelled

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)