public class TrafficAlert extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TrafficAlert.AlertType |
Constructor and Description |
---|
TrafficAlert(TrafficAlert.AlertType alertType,
ZonedDateTime alertDateTime,
float hitsAverage)
Creates a new immutable
TrafficAlert . |
public TrafficAlert(TrafficAlert.AlertType alertType, ZonedDateTime alertDateTime, float hitsAverage)
TrafficAlert
.alertType
- The type of the alert. Can be TrafficAlert.AlertType.HIGH_TRAFFIC
or
TrafficAlert.AlertType.RECOVERED_TRAFFIC
.alertDateTime
- The alert triggering date time.hitsAverage
- The number of hits on average that triggered the alert.Copyright © 2019. All rights reserved.