Class Trip
Represents a trip between two stations.
public record Trip : IEquatable<Trip>
- Inheritance
-
Trip
- Implements
- Inherited Members
Constructors
Trip(Trip)
protected Trip(Trip original)
Parameters
originalTrip
Trip(string, string, string, IEnumerable<TripStop>)
Represents a trip between two stations.
public Trip(string Line, string Direction, string DirectionDescription, IEnumerable<TripStop> Stops)
Parameters
LinestringThe line of the trip.
DirectionstringThe direction of the trip.
DirectionDescriptionstringThe description of the direction.
StopsIEnumerable<TripStop>All stops on this trip.
Properties
Direction
The direction of the trip.
public string Direction { get; init; }
Property Value
DirectionDescription
The description of the direction.
public string DirectionDescription { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Line
The line of the trip.
public string Line { get; init; }
Property Value
Stops
All stops on this trip.
public IEnumerable<TripStop> Stops { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out string, out IEnumerable<TripStop>)
public void Deconstruct(out string Line, out string Direction, out string DirectionDescription, out IEnumerable<TripStop> Stops)
Parameters
LinestringDirectionstringDirectionDescriptionstringStopsIEnumerable<TripStop>
Equals(Trip?)
public virtual bool Equals(Trip? other)
Parameters
otherTrip
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 ==(Trip?, Trip?)
public static bool operator ==(Trip? left, Trip? right)
Parameters
Returns
operator !=(Trip?, Trip?)
public static bool operator !=(Trip? left, Trip? right)