-
public final class RadarBeaconRepresents a Bluetooth beacon.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumRadarBeacon.RadarBeaconTypeThe types for beacons.
-
Field Summary
Fields Modifier and Type Field Description private final String_idprivate final Stringdescriptionprivate final Stringtagprivate final StringexternalIdprivate final Stringuuidprivate final Stringmajorprivate final Stringminorprivate final JSONObjectmetadataprivate final Integerrssiprivate final RadarCoordinatelocationprivate final RadarBeacon.RadarBeaconTypetype
-
Constructor Summary
Constructors Constructor Description RadarBeacon(String _id, String description, String tag, String externalId, String uuid, String major, String minor, JSONObject metadata, Integer rssi, RadarCoordinate location, RadarBeacon.RadarBeaconType type)
-
Method Summary
Modifier and Type Method Description final Stringget_id()The Radar ID of the beacon. final StringgetDescription()The description of the beacon. final StringgetTag()The tag of the beacon. final StringgetExternalId()The externalId of the beacon. final StringgetUuid()For iBeacons, the UUID of the beacon. final StringgetMajor()For iBeacons, the major ID of the beacon. final StringgetMinor()For iBeacons, the minor ID of the beacon. final JSONObjectgetMetadata()The optional set of custom key-value pairs for the beacon. final IntegergetRssi()The RSSI of the beacon. final RadarCoordinategetLocation()The location of the beacon. final RadarBeacon.RadarBeaconTypegetType()The type of the beacon. final JSONObjecttoJson()Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
RadarBeacon
RadarBeacon(String _id, String description, String tag, String externalId, String uuid, String major, String minor, JSONObject metadata, Integer rssi, RadarCoordinate location, RadarBeacon.RadarBeaconType type)
-
-
Method Detail
-
getDescription
final String getDescription()
The description of the beacon.
-
getExternalId
final String getExternalId()
The externalId of the beacon.
-
getUuid
final String getUuid()
For iBeacons, the UUID of the beacon. For Eddystone beacons, the UID of the beacon.
-
getMajor
final String getMajor()
For iBeacons, the major ID of the beacon. For Eddystone beacons, the instance ID of the beacon.
-
getMetadata
final JSONObject getMetadata()
The optional set of custom key-value pairs for the beacon.
-
getLocation
final RadarCoordinate getLocation()
The location of the beacon.
-
getType
final RadarBeacon.RadarBeaconType getType()
The type of the beacon.
-
toJson
final JSONObject toJson()
-
-
-
-