Table of Contents

Class Preselection

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public class Preselection : IComparable<Preselection>, IPreselection
Inheritance
Preselection
Implements
Inherited Members

Properties

MetersToTarget

Gets or sets the estimated distance in meters for the resource to reach the target.

public double? MetersToTarget { get; init; }

Property Value

double?

OperationId

public required Guid OperationId { get; init; }

Property Value

Guid

Resource

public required IUnitResource Resource { get; init; }

Property Value

IUnitResource

RouteTimeToTarget

Gets or sets the estimated time required for the resource to reach the target.

public TimeSpan? RouteTimeToTarget { get; init; }

Property Value

TimeSpan?

Methods

CompareTo(Preselection?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(Preselection? other)

Parameters

other Preselection

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

GetDistanceText()

public string GetDistanceText()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.