-
public final class RadarTripOptionsAn options class used to configure trip options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRadarTripOptions.Companion
-
Field Summary
Fields Modifier and Type Field Description private StringexternalIdprivate JSONObjectmetadataprivate StringdestinationGeofenceTagprivate StringdestinationGeofenceExternalIdprivate Radar.RadarRouteModemodeprivate DatescheduledArrivalAtprivate IntegerapproachingThresholdprivate BooleanstartTracking
-
Constructor Summary
Constructors Constructor Description RadarTripOptions(String externalId, JSONObject metadata, String destinationGeofenceTag, String destinationGeofenceExternalId, Radar.RadarRouteMode mode, Date scheduledArrivalAt, Integer approachingThreshold, Boolean startTracking)
-
Method Summary
Modifier and Type Method Description final StringgetExternalId()A stable unique ID for the trip. final UnitsetExternalId(String externalId)A stable unique ID for the trip. final JSONObjectgetMetadata()An optional set of custom key-value pairs for the trip. final UnitsetMetadata(JSONObject metadata)An optional set of custom key-value pairs for the trip. final StringgetDestinationGeofenceTag()For trips with a destination, the tag of the destination geofence. final UnitsetDestinationGeofenceTag(String destinationGeofenceTag)For trips with a destination, the tag of the destination geofence. final StringgetDestinationGeofenceExternalId()For trips with a destination, the external ID of the destination geofence. final UnitsetDestinationGeofenceExternalId(String destinationGeofenceExternalId)For trips with a destination, the external ID of the destination geofence. final Radar.RadarRouteModegetMode()For trips with a destination, the travel mode. final UnitsetMode(Radar.RadarRouteMode mode)For trips with a destination, the travel mode. final DategetScheduledArrivalAt()The scheduled arrival time for the trip. final UnitsetScheduledArrivalAt(Date scheduledArrivalAt)The scheduled arrival time for the trip. final IntegergetApproachingThreshold()final UnitsetApproachingThreshold(Integer approachingThreshold)final BooleangetStartTracking()final UnitsetStartTracking(Boolean startTracking)final JSONObjecttoJson()Booleanequals(Object other)-
-
Constructor Detail
-
RadarTripOptions
RadarTripOptions(String externalId, JSONObject metadata, String destinationGeofenceTag, String destinationGeofenceExternalId, Radar.RadarRouteMode mode, Date scheduledArrivalAt, Integer approachingThreshold, Boolean startTracking)
-
-
Method Detail
-
getExternalId
final String getExternalId()
A stable unique ID for the trip.
-
setExternalId
final Unit setExternalId(String externalId)
A stable unique ID for the trip.
-
getMetadata
final JSONObject getMetadata()
An optional set of custom key-value pairs for the trip.
-
setMetadata
final Unit setMetadata(JSONObject metadata)
An optional set of custom key-value pairs for the trip.
-
getDestinationGeofenceTag
final String getDestinationGeofenceTag()
For trips with a destination, the tag of the destination geofence.
-
setDestinationGeofenceTag
final Unit setDestinationGeofenceTag(String destinationGeofenceTag)
For trips with a destination, the tag of the destination geofence.
-
getDestinationGeofenceExternalId
final String getDestinationGeofenceExternalId()
For trips with a destination, the external ID of the destination geofence.
-
setDestinationGeofenceExternalId
final Unit setDestinationGeofenceExternalId(String destinationGeofenceExternalId)
For trips with a destination, the external ID of the destination geofence.
-
getMode
final Radar.RadarRouteMode getMode()
For trips with a destination, the travel mode.
-
setMode
final Unit setMode(Radar.RadarRouteMode mode)
For trips with a destination, the travel mode.
-
getScheduledArrivalAt
final Date getScheduledArrivalAt()
The scheduled arrival time for the trip.
-
setScheduledArrivalAt
final Unit setScheduledArrivalAt(Date scheduledArrivalAt)
The scheduled arrival time for the trip.
-
getApproachingThreshold
final Integer getApproachingThreshold()
-
setApproachingThreshold
final Unit setApproachingThreshold(Integer approachingThreshold)
-
getStartTracking
final Boolean getStartTracking()
-
setStartTracking
final Unit setStartTracking(Boolean startTracking)
-
toJson
final JSONObject toJson()
-
-
-
-