-
public final class RadarEventRepresents a change in user state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumRadarEvent.RadarEventTypeThe types for events.
public enumRadarEvent.RadarEventConfidenceThe confidence levels for events.
public enumRadarEvent.RadarEventVerificationThe verification types for events.
-
Field Summary
Fields Modifier and Type Field Description private final String_idprivate final DatecreatedAtprivate final DateactualCreatedAtprivate final Booleanliveprivate final RadarEvent.RadarEventTypetypeprivate final StringconversionNameprivate final RadarGeofencegeofenceprivate final RadarPlaceplaceprivate final RadarRegionregionprivate final RadarBeaconbeaconprivate final RadarTriptripprivate final RadarFraudfraudprivate final Array<RadarPlace>alternatePlacesprivate final RadarPlaceverifiedPlaceprivate final RadarEvent.RadarEventVerificationverificationprivate final RadarEvent.RadarEventConfidenceconfidenceprivate final Floatdurationprivate final Locationlocationprivate final Booleanreplayedprivate final JSONObjectmetadata
-
Constructor Summary
Constructors Constructor Description RadarEvent(String _id, Date createdAt, Date actualCreatedAt, Boolean live, RadarEvent.RadarEventType type, String conversionName, RadarGeofence geofence, RadarPlace place, RadarRegion region, RadarBeacon beacon, RadarTrip trip, RadarFraud fraud, Array<RadarPlace> alternatePlaces, RadarPlace verifiedPlace, RadarEvent.RadarEventVerification verification, RadarEvent.RadarEventConfidence confidence, Float duration, Location location, Boolean replayed, JSONObject metadata)
-
Method Summary
Modifier and Type Method Description final Stringget_id()The Radar ID of the event. final DategetCreatedAt()The datetime when the event occurred on the device. final DategetActualCreatedAt()The datetime when the event was created on the server. final BooleangetLive()A boolean indicating whether the event was generated with your live API key. final RadarEvent.RadarEventTypegetType()The type of the event. final StringgetConversionName()The name of the conversion event. final RadarGeofencegetGeofence()The geofence for which the event was generated. final RadarPlacegetPlace()The place for which the event was generated. final RadarRegiongetRegion()The region for which the event was generated. final RadarBeacongetBeacon()The beacon for which the event was generated. final RadarTripgetTrip()The trip for which the event was generated. final RadarFraudgetFraud()The fraud checks for which the event was generated. final Array<RadarPlace>getAlternatePlaces()For place entry events, alternate place candidates. final RadarPlacegetVerifiedPlace()For accepted place entry events, the verified place. final RadarEvent.RadarEventVerificationgetVerification()The verification of the event. final RadarEvent.RadarEventConfidencegetConfidence()The confidence level of the event. final FloatgetDuration()The duration between entry and exit events, in minutes, for exit events. final LocationgetLocation()The location of the event. final BooleangetReplayed()Whether the event was from a replayed location. final JSONObjectgetMetadata()The metadata of the event. final JSONObjecttoJson()-
-
Constructor Detail
-
RadarEvent
RadarEvent(String _id, Date createdAt, Date actualCreatedAt, Boolean live, RadarEvent.RadarEventType type, String conversionName, RadarGeofence geofence, RadarPlace place, RadarRegion region, RadarBeacon beacon, RadarTrip trip, RadarFraud fraud, Array<RadarPlace> alternatePlaces, RadarPlace verifiedPlace, RadarEvent.RadarEventVerification verification, RadarEvent.RadarEventConfidence confidence, Float duration, Location location, Boolean replayed, JSONObject metadata)
-
-
Method Detail
-
getCreatedAt
final Date getCreatedAt()
The datetime when the event occurred on the device.
-
getActualCreatedAt
final Date getActualCreatedAt()
The datetime when the event was created on the server.
-
getLive
final Boolean getLive()
A boolean indicating whether the event was generated with your live API key.
-
getType
final RadarEvent.RadarEventType getType()
The type of the event.
-
getConversionName
final String getConversionName()
The name of the conversion event. This will only be set if the
typeisCONVERSION.
-
getGeofence
final RadarGeofence getGeofence()
The geofence for which the event was generated. May be
nullfor non-geofence events.
-
getPlace
final RadarPlace getPlace()
The place for which the event was generated. May be
nullfor non-place events.
-
getRegion
final RadarRegion getRegion()
The region for which the event was generated. May be
nullfor non-region events.
-
getBeacon
final RadarBeacon getBeacon()
The beacon for which the event was generated. May be
nullfor non-beacon events.
-
getTrip
final RadarTrip getTrip()
The trip for which the event was generated. May be
nullfor non-trip events.
-
getFraud
final RadarFraud getFraud()
The fraud checks for which the event was generated. May be
nullfor non-fraud events.
-
getAlternatePlaces
final Array<RadarPlace> getAlternatePlaces()
For place entry events, alternate place candidates. May be
nullfor non-place events.
-
getVerifiedPlace
final RadarPlace getVerifiedPlace()
For accepted place entry events, the verified place. May be
nullfor non-place events or unverified events.
-
getVerification
final RadarEvent.RadarEventVerification getVerification()
The verification of the event.
-
getConfidence
final RadarEvent.RadarEventConfidence getConfidence()
The confidence level of the event.
-
getDuration
final Float getDuration()
The duration between entry and exit events, in minutes, for exit events. 0 for entry events.
-
getLocation
final Location getLocation()
The location of the event.
-
getReplayed
final Boolean getReplayed()
Whether the event was from a replayed location.
-
getMetadata
final JSONObject getMetadata()
The metadata of the event. Present on conversions only.
-
toJson
final JSONObject toJson()
-
-
-
-