Package-level declarations

Types

Link copied to clipboard
class ApiKeyFailure(val message: String = API_KEY_ERROR_MESSAGE) : HazardsFailure

Hazards call did not finish due to a problem with the API key.

Link copied to clipboard
class ConnectionFailure(val message: String? = null) : HazardsFailure

Hazards could not establish a connection to the Hazards service.

Link copied to clipboard
class DeserializationFailure(val message: String? = null) : HazardsFailure

Deserialization of a single Hazard has failed.

Link copied to clipboard
annotation class ExperimentalHazardsApi
Link copied to clipboard

Describes the categories of Hazard data.

Link copied to clipboard
value class HazardId(val value: String)

Identifies a hazard.

Link copied to clipboard
abstract class HazardLocation

Represents a hazard location.

Link copied to clipboard

Describes the level of severity.

Link copied to clipboard
abstract class HazardsFailure

Describes the error that happened during the processing of the subscription request.

Link copied to clipboard
class HazardsOptions(val boundingBoxes: List<GeoBoundingBox>, val types: List<HazardType> = HazardType.getAllHazardTypes())

A configuration that can be used in Hazards.

Link copied to clipboard
value class HazardType

Describes the type of Hazard data.

Link copied to clipboard
class HttpFailure(val httpErrorCode: Int, val message: String) : HazardsFailure

Hazards call ended with unexpected HTTP code.

Link copied to clipboard
class NetworkFailure(val message: String) : HazardsFailure

Hazards call failed with IOException due to network problems.

Link copied to clipboard
class SubscriptionFailure(val message: String? = null) : HazardsFailure

Hazards could not complete a subscription request.

Link copied to clipboard
class UnknownFailure(val message: String? = null) : HazardsFailure

Hazards call ended with an unknown error.