Table of Contents

Class TripStop

Namespace
DotVgn.Common.Models
Assembly
DotVgn.Common.dll

Represents a stop on a trip.

public record TripStop : IEquatable<TripStop>
Inheritance
TripStop
Implements
Inherited Members

Constructors

TripStop(TripStop)

protected TripStop(TripStop original)

Parameters

original TripStop

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

StationName string

The station name.

StationId int

The station id.

Platform string

The platform name.

Latitude double

The latitude of the station

Longitude double

The longitude of the station

ArrivalTimeEstimated DateTime?

The estimated arrival time.

ArrivalTimeActual DateTime?

The actual arrival time.

DepartureTimeEstimated DateTime?

The estimated departure time.

DepartureTimeActual DateTime?

The actual departure time.

Properties

ArrivalTimeActual

The actual arrival time.

public DateTime? ArrivalTimeActual { get; init; }

Property Value

DateTime?

ArrivalTimeEstimated

The estimated arrival time.

public DateTime? ArrivalTimeEstimated { get; init; }

Property Value

DateTime?

DepartureTimeActual

The actual departure time.

public DateTime? DepartureTimeActual { get; init; }

Property Value

DateTime?

DepartureTimeEstimated

The estimated departure time.

public DateTime? DepartureTimeEstimated { get; init; }

Property Value

DateTime?

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Latitude

The latitude of the station

public double Latitude { get; init; }

Property Value

double

Longitude

The longitude of the station

public double Longitude { get; init; }

Property Value

double

Platform

The platform name.

public string Platform { get; init; }

Property Value

string

StationId

The station id.

public int StationId { get; init; }

Property Value

int

StationName

The station name.

public string StationName { get; init; }

Property Value

string

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

StationName string
StationId int
Platform string
Latitude double
Longitude double
ArrivalTimeEstimated DateTime?
ArrivalTimeActual DateTime?
DepartureTimeEstimated DateTime?
DepartureTimeActual DateTime?

Equals(TripStop?)

public virtual bool Equals(TripStop? other)

Parameters

other TripStop

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(TripStop?, TripStop?)

public static bool operator ==(TripStop? left, TripStop? right)

Parameters

left TripStop
right TripStop

Returns

bool

operator !=(TripStop?, TripStop?)

public static bool operator !=(TripStop? left, TripStop? right)

Parameters

left TripStop
right TripStop

Returns

bool