-
public final class RadarUserRepresents the current user state.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_idprivate final StringuserIdprivate final StringdeviceIdprivate final Stringdescriptionprivate final JSONObjectmetadataprivate final Locationlocationprivate final Array<RadarGeofence>geofencesprivate final RadarPlaceplaceprivate final Array<RadarBeacon>beaconsprivate final Booleanstoppedprivate final Booleanforegroundprivate final RadarRegioncountryprivate final RadarRegionstateprivate final RadarRegiondmaprivate final RadarRegionpostalCodeprivate final Array<RadarChain>nearbyPlaceChainsprivate final Array<RadarSegment>segmentsprivate final Array<RadarChain>topChainsprivate final Radar.RadarLocationSourcesourceprivate final RadarTriptripprivate final Booleandebugprivate final RadarFraudfraudprivate final Radar.RadarActivityTypeactivityTypeprivate final Doublealtitude
-
Constructor Summary
Constructors Constructor Description RadarUser(String _id, String userId, String deviceId, String description, JSONObject metadata, Location location, Array<RadarGeofence> geofences, RadarPlace place, Array<RadarBeacon> beacons, Boolean stopped, Boolean foreground, RadarRegion country, RadarRegion state, RadarRegion dma, RadarRegion postalCode, Array<RadarChain> nearbyPlaceChains, Array<RadarSegment> segments, Array<RadarChain> topChains, Radar.RadarLocationSource source, RadarTrip trip, Boolean debug, RadarFraud fraud, Radar.RadarActivityType activityType, Double altitude)
-
Method Summary
Modifier and Type Method Description final Stringget_id()The Radar ID of the user. final StringgetUserId()The unique ID of the user, provided when you identified the user. final StringgetDeviceId()The device ID of the user. final StringgetDescription()The optional description of the user. final JSONObjectgetMetadata()The optional set of custom key-value pairs for the user. final LocationgetLocation()The user's current location. final Array<RadarGeofence>getGeofences()The user's current geofences. final RadarPlacegetPlace()The user's current place. final Array<RadarBeacon>getBeacons()The user's nearby beacons. final BooleangetStopped()A boolean indicating whether the user is stopped. final BooleangetForeground()A boolean indicating whether the user was last updated in the foreground. final RadarRegiongetCountry()The user's current country. final RadarRegiongetState()The user's current state. final RadarRegiongetDma()The user's current designated market area (DMA). final RadarRegiongetPostalCode()The user's current postal code. final Array<RadarChain>getNearbyPlaceChains()An array of nearby chains. final Array<RadarSegment>getSegments()The user's segments. final Array<RadarChain>getTopChains()The user's top chains. final Radar.RadarLocationSourcegetSource()The source of the user's current location. final RadarTripgetTrip()The user's current trip. final BooleangetDebug()A boolean indicating whether the user has been "Marked as Debug" in the dashboard. final RadarFraudgetFraud()The user's current fraud state. final Radar.RadarActivityTypegetActivityType()The user's current activity type. final DoublegetAltitude()final JSONObjecttoJson()-
-
Constructor Detail
-
RadarUser
RadarUser(String _id, String userId, String deviceId, String description, JSONObject metadata, Location location, Array<RadarGeofence> geofences, RadarPlace place, Array<RadarBeacon> beacons, Boolean stopped, Boolean foreground, RadarRegion country, RadarRegion state, RadarRegion dma, RadarRegion postalCode, Array<RadarChain> nearbyPlaceChains, Array<RadarSegment> segments, Array<RadarChain> topChains, Radar.RadarLocationSource source, RadarTrip trip, Boolean debug, RadarFraud fraud, Radar.RadarActivityType activityType, Double altitude)
-
-
Method Detail
-
getUserId
final String getUserId()
The unique ID of the user, provided when you identified the user. May be
nullif the user has not been identified.
-
getDeviceId
final String getDeviceId()
The device ID of the user.
-
getDescription
final String getDescription()
The optional description of the user.
-
getMetadata
final JSONObject getMetadata()
The optional set of custom key-value pairs for the user.
-
getLocation
final Location getLocation()
The user's current location.
-
getGeofences
final Array<RadarGeofence> getGeofences()
-
getPlace
final RadarPlace getPlace()
-
getBeacons
final Array<RadarBeacon> getBeacons()
-
getStopped
final Boolean getStopped()
A boolean indicating whether the user is stopped.
-
getForeground
final Boolean getForeground()
A boolean indicating whether the user was last updated in the foreground.
-
getCountry
final RadarRegion getCountry()
-
getState
final RadarRegion getState()
-
getDma
final RadarRegion getDma()
-
getPostalCode
final RadarRegion getPostalCode()
-
getNearbyPlaceChains
final Array<RadarChain> getNearbyPlaceChains()
An array of nearby chains. May be
nullif no chains are nearby or if nearby chains are not enabled.
-
getSegments
final Array<RadarSegment> getSegments()
The user's segments. May be
nullif segments are not enabled.
-
getTopChains
final Array<RadarChain> getTopChains()
The user's top chains. May be
nullif segments are not enabled.
-
getSource
final Radar.RadarLocationSource getSource()
The source of the user's current location.
-
getDebug
final Boolean getDebug()
A boolean indicating whether the user has been "Marked as Debug" in the dashboard.
-
getFraud
final RadarFraud getFraud()
-
getActivityType
final Radar.RadarActivityType getActivityType()
The user's current activity type.
-
getAltitude
final Double getAltitude()
-
toJson
final JSONObject toJson()
-
-
-
-