RadarUser

class RadarUser(_id: String, userId: String?, deviceId: String?, description: String?, metadata: JSONObject?, location: Location, geofences: Array<RadarGeofence>?, place: RadarPlace?, beacons: Array<RadarBeacon>?, stopped: Boolean, foreground: Boolean, country: RadarRegion?, state: RadarRegion?, dma: RadarRegion?, postalCode: RadarRegion?, nearbyPlaceChains: Array<RadarChain>?, segments: Array<RadarSegment>?, topChains: Array<RadarChain>?, source: Radar.RadarLocationSource, proxy: Boolean, trip: RadarTrip?, mocked: Boolean)

Represents the current user state.

See also

Constructors

RadarUser
Link copied to clipboard
fun RadarUser(_id: String, userId: String?, deviceId: String?, description: String?, metadata: JSONObject?, location: Location, geofences: Array<RadarGeofence>?, place: RadarPlace?, beacons: Array<RadarBeacon>?, stopped: Boolean, foreground: Boolean, country: RadarRegion?, state: RadarRegion?, dma: RadarRegion?, postalCode: RadarRegion?, nearbyPlaceChains: Array<RadarChain>?, segments: Array<RadarSegment>?, topChains: Array<RadarChain>?, source: Radar.RadarLocationSource, proxy: Boolean, trip: RadarTrip?, mocked: Boolean = false)

Functions

toJson
Link copied to clipboard
fun toJson(): JSONObject

Properties

_id
Link copied to clipboard
val _id: String
The Radar ID of the user.
beacons
Link copied to clipboard
val beacons: Array<RadarBeacon>?
The user's nearby beacons.
country
Link copied to clipboard
val country: RadarRegion?
The user's current country.
description
Link copied to clipboard
val description: String?
The optional description of the user.
deviceId
Link copied to clipboard
val deviceId: String?
The device ID of the user.
dma
Link copied to clipboard
val dma: RadarRegion?
The user's current designated market area (DMA).
foreground
Link copied to clipboard
val foreground: Boolean
A boolean indicating whether the user was last updated in the foreground.
fraud
Link copied to clipboard
val fraud: RadarFraud
Learned fraud state for the user.
geofences
Link copied to clipboard
val geofences: Array<RadarGeofence>?
The user's current geofences.
location
Link copied to clipboard
val location: Location
The user's current location.
metadata
Link copied to clipboard
val metadata: JSONObject?
The optional set of custom key-value pairs for the user.
mocked
Link copied to clipboard
val mocked: Boolean = false
A boolean indicating whether the user's location is being mocked, such as in a simulation.
nearbyPlaceChains
Link copied to clipboard
val nearbyPlaceChains: Array<RadarChain>?
An array of nearby chains.
place
Link copied to clipboard
val place: RadarPlace?
The user's current place.
postalCode
Link copied to clipboard
val postalCode: RadarRegion?
The user's current postal code.
proxy
Link copied to clipboard
val proxy: Boolean
A boolean indicating whether the user's IP address is a known proxy.
segments
Link copied to clipboard
val segments: Array<RadarSegment>?
The user's segments.
source
Link copied to clipboard
val source: Radar.RadarLocationSource
The source of the user's current location.
state
Link copied to clipboard
val state: RadarRegion?
The user's current state.
stopped
Link copied to clipboard
val stopped: Boolean
A boolean indicating whether the user is stopped.
topChains
Link copied to clipboard
val topChains: Array<RadarChain>?
The user's top chains.
trip
Link copied to clipboard
val trip: RadarTrip?
The user's current trip.
userId
Link copied to clipboard
val userId: String?
The unique ID of the user, provided when you identified the user.