Package com.highmobility.autoapi
Class Crash.State.Builder
java.lang.Object
com.highmobility.autoapi.SetCommand.Builder<Crash.State.Builder>
com.highmobility.autoapi.Crash.State.Builder
- Enclosing class:
- Crash.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddImpactZone(Property<Crash.ImpactZone> impactZone) Add a single impact zoneaddIncident(Property<CrashIncident> incident) Add a single incidentbuild()setAutomaticECall(Property<EnabledState> automaticECall) setImpactZone(Property<Crash.ImpactZone>[] impactZone) Add an array of impact zonesetIncidents(Property<CrashIncident>[] incidents) Add an array of incidentssetSeverity(Property<Integer> severity) setStatus(Property<Crash.Status> status) setTippedState(Property<Crash.TippedState> tippedState) setType(Property<Crash.Type> type) Methods inherited from class com.highmobility.autoapi.SetCommand.Builder
addProperty, getProperties, setBrand, setNonce, setSignature, setTimestamp, setVin
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
- Overrides:
buildin classSetCommand.Builder<Crash.State.Builder>
-
setIncidents
Add an array of incidents- Parameters:
incidents- The incidents- Returns:
- The builder
-
addIncident
Add a single incident- Parameters:
incident- The incident- Returns:
- The builder
-
setType
- Parameters:
type- The type- Returns:
- The builder
-
setTippedState
- Parameters:
tippedState- The tipped state- Returns:
- The builder
-
setAutomaticECall
- Parameters:
automaticECall- Automatic emergency call enabled state- Returns:
- The builder
-
setSeverity
- Parameters:
severity- Severity of the crash (from 0 to 7 - very high severity)- Returns:
- The builder
-
setImpactZone
Add an array of impact zone- Parameters:
impactZone- The impact zone. Impact zone of the crash- Returns:
- The builder
-
addImpactZone
Add a single impact zone- Parameters:
impactZone- The impact zone. Impact zone of the crash- Returns:
- The builder
-
setStatus
- Parameters:
status- The system effect an inpact had on the vehicle.- Returns:
- The builder
-