public static final class IncidentsManager.XDIncidentOptionsGetDetails extends Object
Modifier and Type | Class and Description |
---|---|
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentOutputField
An enum that describes the output fields of an
XDIncident . |
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity
An enum that describes the severity level of an
XDIncident . |
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSource
An enum that describes the reporting source of an
XDIncident . |
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentStatus
An enum that describes the status of an
XDIncident . |
static interface |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentTypeFields
Incident type fields.
|
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.LocRefMethod
An enum that describes 'LocRefMethod' of an
XDIncident . |
Modifier and Type | Field and Description |
---|---|
static int |
INCIDENT_TYPE_ACCIDENTS
Return reports about accidents.
|
static int |
INCIDENT_TYPE_ALL
Return all incidents.
|
static int |
INCIDENT_TYPE_CONGESTION
Return reports about the slowing down of traffic on your
route.
|
static int |
INCIDENT_TYPE_CONSTRUCTION
Return only construction incidents.
|
static int |
INCIDENT_TYPE_EVENT
Return unusual events slated for the area such as a major
sporting event.
|
static int |
INCIDENT_TYPE_HAZARD
Return reports about hazards.
|
static int |
INCIDENT_TYPE_LANE_CLOSURE
Return reports about lane closures.
|
static int |
INCIDENT_TYPE_POLICE
Return reports about the police presence.
|
static int |
INCIDENT_TYPE_ROAD_CLOSURE
Return reports about road closures.
|
static int |
INCIDENT_TYPE_WEATHER
Return weather events that could alter traffic
speed.
|
Constructor and Description |
---|
XDIncidentOptionsGetDetails(Incident... incident)
Initializes a new instance of the
IncidentsManager.XDIncidentOptionsGetDetails class. |
XDIncidentOptionsGetDetails(List<Incident> incidents)
Initializes a new instance of the
IncidentsManager.XDIncidentOptionsGetDetails class. |
Modifier and Type | Method and Description |
---|---|
T |
setIncidentOutputFields(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentOutputField... outputFields)
Sets the list of IncidentOutputFields.
|
IncidentsManager.XDIncidentOptionsGetDetails |
setIncidents(List<Incident> incidents)
Sets the list of incidents for which to get details.
|
T |
setIncidentSeverityTypes(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity... incidentSeverity)
Set a List of IncidentSeverity for the current XDIncidentOptions.
|
T |
setIncidentSeverityTypes(List<com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity> incidentSeverity)
Set a List of IncidentSeverity for the current XDIncidentOptions.
|
T |
setIncidentSource(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSource source)
Set the IncidentSource for the current XDIncidentOptions.
|
T |
setIncidentStatus(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentStatus status)
Set the IncidentStatus for the current XDIncidentOptions.
|
T |
setIncidentTypes(int types)
Sets the incident types for the current
IncidentsManager.XDIncidentOptionsBase . |
T |
setResultsLocale(Locale locale)
Set the preferred locale for the language of the results.
|
public static final int INCIDENT_TYPE_ALL
public static final int INCIDENT_TYPE_CONSTRUCTION
public static final int INCIDENT_TYPE_EVENT
public static final int INCIDENT_TYPE_CONGESTION
public static final int INCIDENT_TYPE_ACCIDENTS
public static final int INCIDENT_TYPE_WEATHER
public static final int INCIDENT_TYPE_POLICE
public static final int INCIDENT_TYPE_HAZARD
public static final int INCIDENT_TYPE_ROAD_CLOSURE
public static final int INCIDENT_TYPE_LANE_CLOSURE
public XDIncidentOptionsGetDetails(@NonNull Incident... incident)
IncidentsManager.XDIncidentOptionsGetDetails
class.incident
- The incident to get more info about.public XDIncidentOptionsGetDetails(@NonNull List<Incident> incidents)
IncidentsManager.XDIncidentOptionsGetDetails
class.incidents
- The list of incidents to get more info about.IncidentsManager.XDIncidentOptionsGetDetails.setIncidents(java.util.List<com.inrix.sdk.model.Incident>)
public IncidentsManager.XDIncidentOptionsGetDetails setIncidents(@NonNull List<Incident> incidents)
incidents
- The list of incidents to get info about.IncidentsManager.XDIncidentOptionsGetDetails
class.IncidentsManager.IncidentsManagerException
- when incidents is invalid.public final T setIncidentOutputFields(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentOutputField... outputFields)
outputFields
- the list of IncidentOutputFields.public T setResultsLocale(Locale locale)
locale
- The locale or null
to use the default.public final T setIncidentSource(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSource source)
source
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentSource
public final T setIncidentStatus(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentStatus status)
status
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentStatus
public final T setIncidentSeverityTypes(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity... incidentSeverity)
incidentSeverity
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentSeverity
public final T setIncidentTypes(int types)
IncidentsManager.XDIncidentOptionsBase
.types
- Incident types. Can be INCIDENT_TYPE_ALL
or any combination of the following:
public final T setIncidentSeverityTypes(List<com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity> incidentSeverity)
incidentSeverity
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentSeverity
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.