Package com.bosch.wdw
Class WarningEvent
java.lang.Object
com.bosch.wdw.WarningEvent
The WarningEvent is the result of a message evaluation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheWarningTypedefines the type of aWarningEvent. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aWarningEventwhich is provided to theWDWClientCallback.onWarningReceived(WarningEvent). -
Method Summary
Modifier and TypeMethodDescriptionReturns the currentWarningTypeReturns the distance of your position to theWarningEventvoidsetDistance(Float distance) Sets the distance of your position to theWarningEventvoidSets the typetoString()
-
Constructor Details
-
WarningEvent
Constructs aWarningEventwhich is provided to theWDWClientCallback.onWarningReceived(WarningEvent).- Parameters:
type- represents one of the three differentWarningEvent.WarningType.
-
-
Method Details
-
getCurrentWarningType
Returns the currentWarningType- Returns:
- the type of the
WarningEventasWarningEvent.WarningType. - See Also:
-
getDistance
Returns the distance of your position to theWarningEvent- Returns:
- distance of your position to the
WarningEventas Float. - See Also:
-
setDistance
Sets the distance of your position to theWarningEvent- Parameters:
distance- set the distance to theWarningEvent.- See Also:
-
setWarningType
Sets the type- Parameters:
type- set the type of the currentWarningEvent- See Also:
-
toString
-