Class TripStop
Represents a stop on a trip.
public record TripStop : IEquatable<TripStop>
- Inheritance
-
TripStop
- Implements
- Inherited Members
Constructors
TripStop(TripStop)
protected TripStop(TripStop original)
Parameters
originalTripStop
TripStop(string, int, string, double, double, DateTime?, DateTime?, DateTime?, DateTime?)
Represents a stop on a trip.
public TripStop(string StationName, int StationId, string Platform, double Latitude, double Longitude, DateTime? ArrivalTimeEstimated, DateTime? ArrivalTimeActual, DateTime? DepartureTimeEstimated, DateTime? DepartureTimeActual)
Parameters
StationNamestringThe station name.
StationIdintThe station id.
PlatformstringThe platform name.
LatitudedoubleThe latitude of the station
LongitudedoubleThe longitude of the station
ArrivalTimeEstimatedDateTime?The estimated arrival time.
ArrivalTimeActualDateTime?The actual arrival time.
DepartureTimeEstimatedDateTime?The estimated departure time.
DepartureTimeActualDateTime?The actual departure time.
Properties
ArrivalTimeActual
The actual arrival time.
public DateTime? ArrivalTimeActual { get; init; }
Property Value
ArrivalTimeEstimated
The estimated arrival time.
public DateTime? ArrivalTimeEstimated { get; init; }
Property Value
DepartureTimeActual
The actual departure time.
public DateTime? DepartureTimeActual { get; init; }
Property Value
DepartureTimeEstimated
The estimated departure time.
public DateTime? DepartureTimeEstimated { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Latitude
The latitude of the station
public double Latitude { get; init; }
Property Value
Longitude
The longitude of the station
public double Longitude { get; init; }
Property Value
Platform
The platform name.
public string Platform { get; init; }
Property Value
StationId
The station id.
public int StationId { get; init; }
Property Value
StationName
The station name.
public string StationName { get; init; }
Property Value
Methods
Deconstruct(out string, out int, out string, out double, out double, out DateTime?, out DateTime?, out DateTime?, out DateTime?)
public void Deconstruct(out string StationName, out int StationId, out string Platform, out double Latitude, out double Longitude, out DateTime? ArrivalTimeEstimated, out DateTime? ArrivalTimeActual, out DateTime? DepartureTimeEstimated, out DateTime? DepartureTimeActual)
Parameters
StationNamestringStationIdintPlatformstringLatitudedoubleLongitudedoubleArrivalTimeEstimatedDateTime?ArrivalTimeActualDateTime?DepartureTimeEstimatedDateTime?DepartureTimeActualDateTime?
Equals(TripStop?)
public virtual bool Equals(TripStop? other)
Parameters
otherTripStop
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 ==(TripStop?, TripStop?)
public static bool operator ==(TripStop? left, TripStop? right)
Parameters
Returns
operator !=(TripStop?, TripStop?)
public static bool operator !=(TripStop? left, TripStop? right)