Table of Contents

Interface IUnitInfo

Namespace
XENBIT.ResQueServe.Abstractions.Interfaces
Assembly
RQS.Abstractions.dll
public interface IUnitInfo : IShelf
Inherited Members

Properties

Callsign

The (long) callsign of the unit.

string Callsign { get; set; }

Property Value

string

CallsignGps

The callsign displayed on maps if IsEquippedWithGps is set to true.

string? CallsignGps { get; set; }

Property Value

string

CallsignShort

A short callsign variant of the unit.

string CallsignShort { get; set; }

Property Value

string

Category

The category of the unit. By setting a value to CategoryOverride, this can be cosmetically overridden.

UnitCategory Category { get; set; }

Property Value

UnitCategory

CategoryOverride

The overridden category of the unit.

string? CategoryOverride { get; set; }

Property Value

string

DisplayCategory

Gets the display category of the unit.

string DisplayCategory { get; }

Property Value

string

The display category.

Id

long Id { get; set; }

Property Value

long

Station

The name of the point of interest (POI) where the unit is located.

string Station { get; }

Property Value

string

Methods

IsAbleToTransportPatients()

Checks if the unit is able to transport patients.

bool IsAbleToTransportPatients()

Returns

bool

True if the unit is able to transport patients; otherwise, false.

IsAmbulance()

Checks if the unit is an ambulance.

bool IsAmbulance()

Returns

bool

True if the unit is an ambulance; otherwise, false.

IsAmbulanceNonUrgent()

Checks if the unit is a non-urgent ambulance.

bool IsAmbulanceNonUrgent()

Returns

bool

True if the unit is a non-urgent ambulance; otherwise, false.

IsAmbulanceUrgent()

Checks if the unit is an urgent ambulance.

bool IsAmbulanceUrgent()

Returns

bool

True if the unit is an urgent ambulance; otherwise, false.

IsDoctor()

Checks if the unit is a doctor.

bool IsDoctor()

Returns

bool

True if the unit is a doctor; otherwise, false.

IsEmergencyMedicalService()

Checks if the unit is EMS

bool IsEmergencyMedicalService()

Returns

bool

True if the unit is a EMS; otherwise, false.

IsFirefighter()

Checks if the unit is a firefighter.

bool IsFirefighter()

Returns

bool

True if the unit is a firefighter; otherwise, false.

IsHelicopter()

Checks if the unit is a helicopter.

bool IsHelicopter()

Returns

bool

True if the unit is a helicopter; otherwise, false.

ToString(string)

Returns a string representation of the unit based on the specified format.

string ToString(string format)

Parameters

format string

The format to use. Supported formats are "full", "middle", "short", and "gps".

Returns

string

A string representation of the unit based on the specified format:

  • "full" - Returns the callsign and category.
  • "middle" - Returns the short callsign and category.
  • "short" - Returns the short callsign.
  • "gps" - Returns the GPS callsign.
If the format is not recognized, the default ToString() method is called.