public class BeaconDevice extends java.lang.Object implements IBeaconDevice
Beacon
) which represents a JSON model
for a Beacon and is accessible while interacting with the REST Client.Modifier and Type | Class and Description |
---|---|
static class |
BeaconDevice.BeaconCharacteristics
Beacon Characteristics.
|
IBeaconDevice.Characteristics
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BeaconDevice> |
CREATOR
The Parcelable CREATOR constant.
|
Constructor and Description |
---|
BeaconDevice(IBeaconAdvertisingPacket advertisingPacket)
Instantiates a new Beacon.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IBeaconDevice another) |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAddress()
Gets MAC address of beacon.
|
int |
getBatteryPower()
Returns percentage battery power.
|
double |
getDistance()
Gets accuracy.
|
int |
getFirmwareVersion()
Gets firmware version.
|
int |
getMajor()
Gets major value.
|
int |
getMinor()
Gets minor value.
|
java.lang.String |
getName()
Gets beacon name.
|
byte[] |
getPassword()
Gets password.
|
Proximity |
getProximity()
Gets one of three values: IMMEDIATE, NEAR, FAR.
|
java.util.UUID |
getProximityUUID()
Gets Proximity UUID.
|
double |
getRssi()
Gets rssi.
|
long |
getTimestamp()
Gets timestamp - time when beacon device was discovered
|
int |
getTxPower()
Gets measured power.
|
java.lang.String |
getUniqueId()
Gets beacon unique id.
|
int |
hashCode() |
void |
setPassword(byte[] password)
Sets authorization password.
|
void |
writeToParcel(android.os.Parcel output,
int flags) |
public static final android.os.Parcelable.Creator<BeaconDevice> CREATOR
public BeaconDevice(IBeaconAdvertisingPacket advertisingPacket)
advertisingPacket
- the advertising packagepublic int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel output, int flags)
writeToParcel
in interface android.os.Parcelable
public int compareTo(IBeaconDevice another)
compareTo
in interface java.lang.Comparable<IBeaconDevice>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long getTimestamp()
getTimestamp
in interface RemoteBluetoothDevice
public java.util.UUID getProximityUUID()
getProximityUUID
in interface IBeaconDevice
public Proximity getProximity()
getProximity
in interface RemoteBluetoothDevice
public int getBatteryPower()
getBatteryPower
in interface IBeaconDevice
public int getMajor()
getMajor
in interface IBeaconDevice
public java.lang.String getUniqueId()
getUniqueId
in interface IBeaconDevice
public int getMinor()
getMinor
in interface IBeaconDevice
public int getTxPower()
getTxPower
in interface IBeaconDevice
public double getDistance()
getDistance
in interface RemoteBluetoothDevice
public java.lang.String getAddress()
getAddress
in interface RemoteBluetoothDevice
public void setPassword(byte[] password)
setPassword
in interface RemoteBluetoothDevice
password
- the passwordpublic byte[] getPassword()
getPassword
in interface RemoteBluetoothDevice
public double getRssi()
getRssi
in interface RemoteBluetoothDevice
public java.lang.String getName()
getName
in interface IBeaconDevice
public int getFirmwareVersion()
getFirmwareVersion
in interface IBeaconDevice