sdk-routing / com.tomtom.online.sdk.routing.data / Cause

Cause

open class Cause : Serializable

The cause of the traffic event.

Constructors

<init>

Cause()

Empty constructor for the Cause.

Cause(mainCauseCode: Int, subCauseCode: Int)

Default constructor for the Cause.

Properties

mainCauseCode

var mainCauseCode: Int

The main cause of the traffic event.

subCauseCode

var subCauseCode: Int

The subcause of the traffic event.

Functions

getMainCauseCode

open fun getMainCauseCode(): Int

Returns the main cause of the traffic event.

getSubCauseCode

open fun getSubCauseCode(): Int

Returns the subcause of the traffic event.

toString

open fun toString(): String