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
OperationId
public required Guid OperationId { get; init; }
Property Value
Resource
public required IUnitResource Resource { get; init; }
Property Value
RouteTimeToTarget
Gets or sets the estimated time required for the resource to reach the target.
public TimeSpan? RouteTimeToTarget { get; init; }
Property Value
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
otherPreselectionAn 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 otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.
GetDistanceText()
public string GetDistanceText()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.