Class: VehicleState

domain/VehicleState.VehicleState

Constructors

constructor

new VehicleState(timestamp, vehicleStatus, activeCaseFullId, vehicleLocation)

State of the vehicle, location, status, id

Parameters

Name

Type

Description

timestamp

Date

timestamp of when state received

vehicleStatus

VehicleStatus

status of the vehicle

activeCaseFullId

string

id of the current active operation

vehicleLocation

Location

current vehicle location

See

VehicleStatus

Properties

activeCaseFullId

activeCaseFullId: string

id of the current active operation


timestamp

timestamp: Date

timestamp of when state received


vehicleLocation

vehicleLocation: Location

current vehicle location


vehicleStatus

vehicleStatus: VehicleStatus

status of the vehicle

Methods

fromJSON

Static fromJSON(vehicleState): VehicleState

Create from JSON

Parameters

Name

Type

Description

vehicleState

any

JSON object

Returns

VehicleState