Package com.blukii.sdk.config.datatype
Class IBeacon
java.lang.Object
com.blukii.sdk.config.datatype.IBeacon
This class represents data type
IBeacon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getMajor()
Gets the Major ID.short
Gets the Measured Power RSSI value.int
getMinor()
Gets the Minor ID.getUuid()
Gets the UUID.void
setMajor
(int major) Sets the Major ID.void
setMeasuredPower
(short measuredPower) Sets the Measured Powervoid
setMinor
(int minor) Sets the Minor ID.void
Sets the UUIDtoString()
int
validate()
Validates the values contained in this object.
-
Constructor Details
-
IBeacon
public IBeacon()
-
-
Method Details
-
getUuid
Gets the UUID.- Returns:
- UUID
-
setUuid
Sets the UUID- Parameters:
uuid
- the UUID
-
getMajor
public int getMajor()Gets the Major ID.- Returns:
- Major ID
-
setMajor
public void setMajor(int major) Sets the Major ID.Value:
0 - 65535
- Parameters:
major
- the major id
-
getMinor
public int getMinor()Gets the Minor ID.- Returns:
- Minor ID
-
setMinor
public void setMinor(int minor) Sets the Minor ID.Value:
0 - 65535
- Parameters:
minor
- the minor id
-
getMeasuredPower
public short getMeasuredPower()Gets the Measured Power RSSI value.It stands for the measured RSSI value when the distance between the beacon and the mobile device is 1 meter.
- Returns:
- Measured Power RSSI, Short.MIN_VALUE if it is not supported
-
setMeasuredPower
public void setMeasuredPower(short measuredPower) Sets the Measured PowerValue:
-127 - 5
- Parameters:
measuredPower
- the measured power
-
validate
public int validate()Validates the values contained in this object.This can be used when you create an object, to verify the values set.
- Returns:
- a state from
Validation
-
equals
-
toString
-