Table of Contents

Class UnitLookupItem

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll

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

Id long

The ID of the unit.

Callsign string

The callsign.

CallsignShort string

The short callsign.

CallsignGps string

The GPS callsign, if any.

CallsignVerbal string

The verbal callsign (as spoken on the radio), if any.

Category string

The unit category, e.g. "RTW".

MatchedCallsign string

The callsign (callsign, short, GPS or verbal) that matched the search best.

Properties

Callsign

The callsign.

public string Callsign { get; init; }

Property Value

string

CallsignGps

The GPS callsign, if any.

public string? CallsignGps { get; init; }

Property Value

string

CallsignShort

The short callsign.

public string CallsignShort { get; init; }

Property Value

string

CallsignVerbal

The verbal callsign (as spoken on the radio), if any.

public string? CallsignVerbal { get; init; }

Property Value

string

Category

The unit category, e.g. "RTW".

public string Category { get; init; }

Property Value

string

Id

The ID of the unit.

public long Id { get; init; }

Property Value

long

MatchedCallsign

The callsign (callsign, short, GPS or verbal) that matched the search best.

public string MatchedCallsign { get; init; }

Property Value

string

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

Id long
Callsign string
CallsignShort string
CallsignGps string
CallsignVerbal string
Category string
MatchedCallsign string

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(UnitLookupItem?)

public bool Equals(UnitLookupItem? other)

Parameters

other UnitLookupItem

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(UnitLookupItem?, UnitLookupItem?)

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

Parameters

left UnitLookupItem
right UnitLookupItem

Returns

bool

operator !=(UnitLookupItem?, UnitLookupItem?)

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

Parameters

left UnitLookupItem
right UnitLookupItem

Returns

bool