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 of when state received |
|
status of the vehicle |
|
|
|
id of the current active operation |
|
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 |
|---|---|---|
|
|
JSON object |