Class Departure
Represents a specific departure from a station.
public record Departure : IEquatable<Departure>
- Inheritance
-
Departure
- Implements
- Inherited Members
Constructors
Departure(Departure)
protected Departure(Departure original)
Parameters
originalDeparture
Departure(string, string, string, string, DateTime, DateTime, DateTime, TransportType, int, string)
Represents a specific departure from a station.
public Departure(string Line, string StopPoint, string Direction, string DirectionDescription, DateTime Date, DateTime DepartureTimePlanned, DateTime DepartureTimeActual, TransportType TransportType, int TripNumber, string OccupationLevel)
Parameters
LinestringThe line on which the vehicle departs.
StopPointstringThe point at which the vehicle stops. (e.g., Platform 1)
DirectionstringThe direction the vehicle drives to. (VGN uses "Richtung1", "Richtung2" etc.)
DirectionDescriptionstringThe Final destination name.
DateDateTimeThe date of the departure.
DepartureTimePlannedDateTimeTime on which departure was planned.
DepartureTimeActualDateTimeTime on which departure is in real life.
TransportTypeTransportTypeThe transport type.
TripNumberintVGN internal trip number.
OccupationLevelstringThe level of occupation in the vehicle.
Properties
Date
The date of the departure.
public DateTime Date { get; init; }
Property Value
DepartureTimeActual
Time on which departure is in real life.
public DateTime DepartureTimeActual { get; init; }
Property Value
DepartureTimePlanned
Time on which departure was planned.
public DateTime DepartureTimePlanned { get; init; }
Property Value
Direction
The direction the vehicle drives to. (VGN uses "Richtung1", "Richtung2" etc.)
public string Direction { get; init; }
Property Value
DirectionDescription
The Final destination name.
public string DirectionDescription { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Line
The line on which the vehicle departs.
public string Line { get; init; }
Property Value
OccupationLevel
The level of occupation in the vehicle.
public string OccupationLevel { get; init; }
Property Value
StopPoint
The point at which the vehicle stops. (e.g., Platform 1)
public string StopPoint { get; init; }
Property Value
TransportType
The transport type.
public TransportType TransportType { get; init; }
Property Value
TripNumber
VGN internal trip number.
public int TripNumber { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string, out string, out DateTime, out DateTime, out DateTime, out TransportType, out int, out string)
public void Deconstruct(out string Line, out string StopPoint, out string Direction, out string DirectionDescription, out DateTime Date, out DateTime DepartureTimePlanned, out DateTime DepartureTimeActual, out TransportType TransportType, out int TripNumber, out string OccupationLevel)
Parameters
LinestringStopPointstringDirectionstringDirectionDescriptionstringDateDateTimeDepartureTimePlannedDateTimeDepartureTimeActualDateTimeTransportTypeTransportTypeTripNumberintOccupationLevelstring
Equals(Departure?)
public virtual bool Equals(Departure? other)
Parameters
otherDeparture
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(Departure?, Departure?)
public static bool operator ==(Departure? left, Departure? right)
Parameters
Returns
operator !=(Departure?, Departure?)
public static bool operator !=(Departure? left, Departure? right)