Class: VehicleState

domain/VehicleState.VehicleState

Constructors

constructor

new VehicleState(timestamp, vehicleStatus, activeCaseFullId, vehicleLocation)

State of the vehicle, location, status, id

See

VehicleStatus

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

Properties

activeCaseFullId

activeCaseFullId: string


timestamp

timestamp: Date


vehicleLocation

vehicleLocation: Location


vehicleStatus

vehicleStatus: VehicleStatus

Methods

fromJSON

Static fromJSON(vehicleState): VehicleState

Create from JSON

Parameters

Name

Type

Description

vehicleState

any

JSON object

Returns

VehicleState