Class: OperationUnit

domain/OperationUnit.OperationUnit

Operation unit corresponds to a vehicle on a case and it is related to the Assigned Resource values from SOS.

Constructors

constructor

new OperationUnit(unitId, status, role, source, eta, reportedInArea)

Parameters

Name

Type

Description

unitId

string

The unique id of the unit, corresponds to the Resource Id for Assigned Resource from SOS

status

string

The current Status, also corresponds to the Status for Assigned Resource from SOS

role

string

The role of the unit

source

OperationUnitSource

The source of the unit

eta

Date

The estimated time of arrival in epoch milliseconds UTC timezone

reportedInArea

string

Corresponds to reportedInArea for Assigned Resource from SOS

Properties

eta

eta: Date

The estimated time of arrival in epoch milliseconds UTC timezone


reportedInArea

reportedInArea: string

Corresponds to reportedInArea for Assigned Resource from SOS


role

role: string

The role of the unit


source

source: OperationUnitSource

The source of the unit


status

status: string

The current Status, also corresponds to the Status for Assigned Resource from SOS


unitId

unitId: string

The unique id of the unit, corresponds to the Resource Id for Assigned Resource from SOS

Methods

fromJSON

Static fromJSON(data): OperationUnit

Parameters

Name

Type

data

any

Returns

OperationUnit