public final class CBBeacon
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<CBBeacon> |
CREATOR
The constant CREATOR.
|
Constructor and Description |
---|
CBBeacon()
Initialize a new object of CBBeacon.
|
CBBeacon(org.json.JSONObject beacon)
Initialize a new object of CBBeacon.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
double |
getAccuracy()
Gets accuracy.
|
java.lang.String |
getBeaconID()
Gets beacon id.
|
Beacon |
getClBeacon()
Gets clbeacon.
|
int |
getColor()
Gets color.
|
java.lang.String |
getGroupId()
Gets group id.
|
java.lang.String |
getMacAddress()
Gets mac address.
|
int |
getMajor()
Gets major.
|
java.lang.String |
getMapId()
Gets map id.
|
int |
getMeasuredPower()
Gets measured power.
|
int |
getMinor()
Gets minor.
|
java.lang.String |
getName()
Gets name.
|
Proximity |
getProximity()
Gets proximity.
|
java.lang.String |
getProximityUUID()
Gets proximity UUID.
|
int |
getRssi()
Gets rssi.
|
CBStoryline |
getStoryline()
Gets storyline.
|
void |
setBeaconId(java.lang.String beaconId)
Sets beacon id.
|
void |
setClBeacon(Beacon clBeacon)
Sets cl beacon.
|
void |
setColor(int color)
Sets color.
|
void |
setGroupId(java.lang.String groupId)
Sets group id.
|
void |
setMajor(int major)
Sets major.
|
void |
setMapId(java.lang.String mapId)
Sets map id.
|
void |
setMinor(int minor)
Sets minor.
|
void |
setName(java.lang.String name)
Sets name.
|
void |
setProximityUUID(java.lang.String proximityUUID)
Sets proximity uuid.
|
void |
setStoryline(CBStoryline storyline)
Sets storyline.
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<CBBeacon> CREATOR
public CBBeacon()
public CBBeacon(org.json.JSONObject beacon)
beacon
- the JSONObject
of beaconpublic java.lang.String getBeaconID()
public java.lang.String getMapId()
public java.lang.String getGroupId()
public java.lang.String getName()
public java.lang.String getProximityUUID()
public int getMajor()
public int getMinor()
public int getColor()
public Beacon getClBeacon()
public CBStoryline getStoryline()
public void setBeaconId(java.lang.String beaconId)
beaconId
- the beacon idpublic void setMapId(java.lang.String mapId)
mapId
- the map idpublic void setGroupId(java.lang.String groupId)
groupId
- the group idpublic void setName(java.lang.String name)
name
- the namepublic void setProximityUUID(java.lang.String proximityUUID)
proximityUUID
- the proximity uuidpublic void setMajor(int major)
major
- the majorpublic void setMinor(int minor)
minor
- the minorpublic void setColor(int color)
color
- the colorpublic void setClBeacon(Beacon clBeacon)
clBeacon
- the cl beaconpublic void setStoryline(CBStoryline storyline)
storyline
- the storylinepublic java.lang.String getMacAddress()
public int getMeasuredPower()
public int getRssi()
public double getAccuracy()
public Proximity getProximity()
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable