Table of Contents

Class DispatchCenter

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public record DispatchCenter : IDispatchCenter, IDispatchCenterInfo, IEquatable<DispatchCenter>
Inheritance
DispatchCenter
Implements
Inherited Members
Extension Methods

Constructors

DispatchCenter()

public DispatchCenter()

DispatchCenter(DispatchCenter)

[SetsRequiredMembers]
protected DispatchCenter(DispatchCenter original)

Parameters

original DispatchCenter

Properties

ActivePlayers

The number of active players or users at the command center within the last 30 days, indicating its operational activity.

[EntityTagIgnore]
public int ActivePlayers { get; set; }

Property Value

int

Address

The specific address where the command center is physically located (geographical position).

public IAddress? Address { get; set; }

Property Value

IAddress

AddressPackage

The package of addresses associated with the command center.

[EntityTagReference]
public AddressPackage? AddressPackage { get; set; }

Property Value

AddressPackage

Administrators

A list of users who have administrative rights to contribute to and manage the data and operations of the command center. These administrators are responsible for overseeing the daily operations and ensuring that the command center's data and settings are correctly maintained and updated.

[EntityTagReference]
public IEnumerable<IUserInfo>? Administrators { get; set; }

Property Value

IEnumerable<IUserInfo>

CallNumberEmergency

The emergency phone number for the dispatch center, which is typically 911 in North America or 112 in Europe. This number is used for emergency calls requiring immediate response.

public string? CallNumberEmergency { get; set; }

Property Value

string

CallNumberOffice

The standard office phone number of the dispatch center, used for non-emergency calls. This number provides a way for the public to contact the dispatch center for general inquiries.

public string? CallNumberOffice { get; set; }

Property Value

string

CallNumberPatientTransport

The specific phone number for arranging patient transports, such as 19222 in Germany. This number is designated for services that are urgent but not life-threatening.

public string? CallNumberPatientTransport { get; set; }

Property Value

string

Category

The category of the command center, which helps classify the center according to its primary function or operational scope.

public DispatchCenterCategory Category { get; set; }

Property Value

DispatchCenterCategory

ChangedOn

The date and time when the command center was last modified.

[EntityTagIgnore]
public DateTimeOffset? ChangedOn { get; init; }

Property Value

DateTimeOffset?

Classification

The classification of the command center based on an automatic scoring system ranging from A (best) to F (not rated).

[EntityTagIgnore]
public DispatchCenterClassification Classification { get; set; }

Property Value

DispatchCenterClassification

Country

The country where the dispatch center is located.

public Country? Country { get; }

Property Value

Country?

CreatedOn

The date and time when the command center was created.

public DateTimeOffset CreatedOn { get; init; }

Property Value

DateTimeOffset

CustomEquipments

A list of custom equipment configurations available for the command center. This property allows the command center to specify unique equipment setups for automated unit suggestions, tailoring the available resources to the specific needs of operations.

public IEnumerable<IDispatchCenterCustomEquipment>? CustomEquipments { get; set; }

Property Value

IEnumerable<IDispatchCenterCustomEquipment>

CustomGeocodingSearchFormat

public string? CustomGeocodingSearchFormat { get; set; }

Property Value

string

DefaultStatus

The status of a unit if no status was provided / received yet.

public int? DefaultStatus { get; set; }

Property Value

int?

Environment

The environment the dispatch center is maintained for: a simulation or a real-world dispatch center without simulation, to which simulation-only settings do not apply.

public DispatchCenterEnvironment Environment { get; set; }

Property Value

DispatchCenterEnvironment

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

HasErrors

Indicates if there are configuration problems with the command center. If true, new sessions cannot be initiated.

[EntityTagIgnore]
public bool HasErrors { get; set; }

Property Value

bool

HeaderImageId

The identifier for the header image of the command center, used for display purposes in interfaces.

public Guid? HeaderImageId { get; set; }

Property Value

Guid?

Id

This is the dpcId (Dispatch Center ID).

public long Id { get; set; }

Property Value

long

IsDispatchingFireAndRescue

Indicates whether the command center coordinates fire and rescue operations, addressing both fire-related emergencies and other rescue missions.

public bool IsDispatchingFireAndRescue { get; set; }

Property Value

bool

IsDispatchingPatientTransports

Indicates whether the command center coordinates normal patient transport services.

public bool IsDispatchingPatientTransports { get; set; }

Property Value

bool

IsDispatchingUrgentAmbulance

Indicates whether the command center coordinates urgent ambulance services, typically for emergency medical response.

public bool IsDispatchingUrgentAmbulance { get; set; }

Property Value

bool

IsWorkInProgress

Indicates the Dispatch Center entire dataset is not completed or production-ready yet.

public bool IsWorkInProgress { get; set; }

Property Value

bool

KeywordsPerOperation

Defines the number of keywords that can be associated with an operation, ranging from 1 (default) to 6 (maximum). This impacts how operations are classified and searched within the system.

public int KeywordsPerOperation { get; set; }

Property Value

int

Name

The name of the command center. This field may be null if the name has not been set.

public required string Name { get; set; }

Property Value

string

OperationsPerYear

An initial value used to calculate the number of operations per year. This property does not influence the actual number of emergencies created but helps in setting up operational expectations.

public int OperationsPerYear { get; set; }

Property Value

int

Options

A list of configurable options that can be set per command center. These options allow for the customization of operational settings,

public IEnumerable<DispatchCenterOption>? Options { get; set; }

Property Value

IEnumerable<DispatchCenterOption>

Owner

Information about the owner of the command center, which includes details.

[EntityTagReference]
public IUserInfo? Owner { get; set; }

Property Value

IUserInfo

Platform

How the dispatch center is published on the SIM Dispatcher platform; always set when read, an update without it keeps the stored values.

public DispatchCenterPlatform? Platform { get; set; }

Property Value

DispatchCenterPlatform

Simulation

The parameters of the simulation; null for a real-world dispatch center without simulation (RealWorld).

public DispatchCenterSimulation? Simulation { get; set; }

Property Value

DispatchCenterSimulation

Methods

CreateInfoInstance()

public IDispatchCenterInfo CreateInfoInstance()

Returns

IDispatchCenterInfo

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(DispatchCenter?)

public virtual bool Equals(DispatchCenter? other)

Parameters

other DispatchCenter

Returns

bool

GetFullName()

Gets the full name by combining its localized category description and name.

public string GetFullName()

Returns

string

The full name of the dispatch center.

GetHashCode()

public override int GetHashCode()

Returns

int

GetSimulation()

The simulation parameters, or the defaults of a new dispatch center when it has none (a real-world dispatch center that is simulated anyway).

public DispatchCenterSimulation GetSimulation()

Returns

DispatchCenterSimulation

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DispatchCenter?, DispatchCenter?)

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

Parameters

left DispatchCenter
right DispatchCenter

Returns

bool

operator !=(DispatchCenter?, DispatchCenter?)

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

Parameters

left DispatchCenter
right DispatchCenter

Returns

bool