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
CallsignGps
The callsign displayed on maps if IsEquippedWithGps is set to true.
string? CallsignGps { get; set; }
Property Value
CallsignShort
A short callsign variant of the unit.
string CallsignShort { get; set; }
Property Value
Category
The category of the unit. By setting a value to CategoryOverride, this can be cosmetically overridden.
UnitCategory Category { get; set; }
Property Value
CategoryOverride
The overridden category of the unit.
string? CategoryOverride { get; set; }
Property Value
DisplayCategory
Gets the display category of the unit.
string DisplayCategory { get; }
Property Value
- string
The display category.
Id
long Id { get; set; }
Property Value
Station
The name of the point of interest (POI) where the unit is located.
string Station { get; }
Property Value
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
formatstringThe 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.