Hazard

class Hazard(val id: HazardId, val expirationTime: Date, val type: HazardType, val category: HazardCategory, val severity: HazardSeverity, val detailedInformation: DetailedHazardInformation?, val location: HazardLocation, val version: Int)

A hazard entry.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(id: HazardId, expirationTime: Date, type: HazardType, category: HazardCategory, severity: HazardSeverity, detailedInformation: DetailedHazardInformation?, location: HazardLocation, version: Int)

Properties

Link copied to clipboard

The HazardCategory aggregates the different types at a higher level.

Link copied to clipboard

The DetailedHazardInformation the basis for the individual hazard types. Each type may have additional information.

Link copied to clipboard

Expiration time of the hazard data.

Link copied to clipboard

A unique ID of the hazard data.

Link copied to clipboard

Describes where the hazard is happening.

Link copied to clipboard

The HazardSeverity of a hazard describes its criticality with respect to the danger.

Link copied to clipboard

The HazardType defines the nature of a hazard. It is the lowest level of categorization.

Link copied to clipboard

Describes a version of the Hazard. The version is an incrementing counter so that greater numbers are indicating an update of the Hazard content.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String