Class UnitLookupItem
A unit found by the unit lookup (Realm UnitCallsignLookup).
public sealed record UnitLookupItem : IEquatable<UnitLookupItem>
- Inheritance
-
UnitLookupItem
- Implements
- Inherited Members
- Extension Methods
Constructors
UnitLookupItem(long, string, string, string?, string?, string, string)
A unit found by the unit lookup (Realm UnitCallsignLookup).
public UnitLookupItem(long Id, string Callsign, string CallsignShort, string? CallsignGps, string? CallsignVerbal, string Category, string MatchedCallsign)
Parameters
IdlongThe ID of the unit.
CallsignstringThe callsign.
CallsignShortstringThe short callsign.
CallsignGpsstringThe GPS callsign, if any.
CallsignVerbalstringThe verbal callsign (as spoken on the radio), if any.
CategorystringThe unit category, e.g. "RTW".
MatchedCallsignstringThe callsign (callsign, short, GPS or verbal) that matched the search best.
Properties
Callsign
The callsign.
public string Callsign { get; init; }
Property Value
CallsignGps
The GPS callsign, if any.
public string? CallsignGps { get; init; }
Property Value
CallsignShort
The short callsign.
public string CallsignShort { get; init; }
Property Value
CallsignVerbal
The verbal callsign (as spoken on the radio), if any.
public string? CallsignVerbal { get; init; }
Property Value
Category
The unit category, e.g. "RTW".
public string Category { get; init; }
Property Value
Id
The ID of the unit.
public long Id { get; init; }
Property Value
MatchedCallsign
The callsign (callsign, short, GPS or verbal) that matched the search best.
public string MatchedCallsign { get; init; }
Property Value
Methods
Deconstruct(out long, out string, out string, out string?, out string?, out string, out string)
public void Deconstruct(out long Id, out string Callsign, out string CallsignShort, out string? CallsignGps, out string? CallsignVerbal, out string Category, out string MatchedCallsign)
Parameters
IdlongCallsignstringCallsignShortstringCallsignGpsstringCallsignVerbalstringCategorystringMatchedCallsignstring
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(UnitLookupItem?)
public bool Equals(UnitLookupItem? other)
Parameters
otherUnitLookupItem
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(UnitLookupItem?, UnitLookupItem?)
public static bool operator ==(UnitLookupItem? left, UnitLookupItem? right)
Parameters
leftUnitLookupItemrightUnitLookupItem
Returns
operator !=(UnitLookupItem?, UnitLookupItem?)
public static bool operator !=(UnitLookupItem? left, UnitLookupItem? right)
Parameters
leftUnitLookupItemrightUnitLookupItem