RadarEvent

class RadarEvent(_id: String, createdAt: Date, actualCreatedAt: Date, live: Boolean, type: RadarEvent.RadarEventType, geofence: RadarGeofence?, place: RadarPlace?, region: RadarRegion?, beacon: RadarBeacon?, trip: RadarTrip?, alternatePlaces: Array<RadarPlace>?, verifiedPlace: RadarPlace?, verification: RadarEvent.RadarEventVerification, confidence: RadarEvent.RadarEventConfidence, duration: Float, location: Location)

Represents a change in user state.

Constructors

RadarEvent
Link copied to clipboard
fun RadarEvent(_id: String, createdAt: Date, actualCreatedAt: Date, live: Boolean, type: RadarEvent.RadarEventType, geofence: RadarGeofence?, place: RadarPlace?, region: RadarRegion?, beacon: RadarBeacon?, trip: RadarTrip?, alternatePlaces: Array<RadarPlace>?, verifiedPlace: RadarPlace?, verification: RadarEvent.RadarEventVerification, confidence: RadarEvent.RadarEventConfidence, duration: Float, location: Location)

Types

RadarEventConfidence
Link copied to clipboard
enum RadarEventConfidence : Enum<RadarEvent.RadarEventConfidence>
The confidence levels for events.
RadarEventType
Link copied to clipboard
enum RadarEventType : Enum<RadarEvent.RadarEventType>
The types for events.
RadarEventVerification
Link copied to clipboard
The verification types for events.

Functions

toJson
Link copied to clipboard
fun toJson(): JSONObject

Properties

_id
Link copied to clipboard
val _id: String
The Radar ID of the event.
actualCreatedAt
Link copied to clipboard
val actualCreatedAt: Date
The datetime when the event was created on the server.
alternatePlaces
Link copied to clipboard
val alternatePlaces: Array<RadarPlace>?
For place entry events, alternate place candidates.
beacon
Link copied to clipboard
val beacon: RadarBeacon?
The beacon for which the event was generated.
confidence
Link copied to clipboard
val confidence: RadarEvent.RadarEventConfidence
The confidence level of the event.
createdAt
Link copied to clipboard
val createdAt: Date
The datetime when the event occurred on the device.
duration
Link copied to clipboard
val duration: Float
The duration between entry and exit events, in minutes, for exit events.
geofence
Link copied to clipboard
val geofence: RadarGeofence?
The geofence for which the event was generated.
live
Link copied to clipboard
val live: Boolean
A boolean indicating whether the event was generated with your live API key.
location
Link copied to clipboard
val location: Location
The location of the event.
place
Link copied to clipboard
val place: RadarPlace?
The place for which the event was generated.
region
Link copied to clipboard
val region: RadarRegion?
The region for which the event was generated.
trip
Link copied to clipboard
val trip: RadarTrip?
The trip for which the event was generated.
type
Link copied to clipboard
val type: RadarEvent.RadarEventType
The type of the event.
verification
Link copied to clipboard
val verification: RadarEvent.RadarEventVerification
The verification of the event.
verifiedPlace
Link copied to clipboard
val verifiedPlace: RadarPlace?
For accepted place entry events, the verified place.