public class BeaconId
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static <any> |
CREATOR |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static BeaconId |
fromJSONObject(JSONObject jsonObject)
Creates BeaconId from
JSONObject |
static BeaconId |
fromQueriedBy(java.lang.String queriedBy)
Creates Beacon id from string in json
|
static java.util.List<BeaconId> |
getIBeaconFutureIds(JSONObject jsonObject)
Gets List of BeaconId from json object
|
int |
getMajor() |
int |
getMinor() |
java.util.UUID |
getProximity() |
int |
hashCode() |
static BeaconId |
of(IBeaconDevice beaconDevice)
Creates BeaconId from
IBeaconDevice |
static BeaconId |
of(java.util.UUID proximity,
int major,
int minor)
Creates BeaconId with given proximity, major and minor
|
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static BeaconId of(java.util.UUID proximity, int major, int minor)
proximity - proximity uuidmajor - majorminor - minorpublic int getMinor()
public int getMajor()
public java.util.UUID getProximity()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static BeaconId of(IBeaconDevice beaconDevice)
IBeaconDevicebeaconDevice - the beacon devicepublic static BeaconId fromQueriedBy(java.lang.String queriedBy)
queriedBy - stringpublic static BeaconId fromJSONObject(JSONObject jsonObject)
JSONObjectjsonObject - the json objectpublic static java.util.List<BeaconId> getIBeaconFutureIds(JSONObject jsonObject)
jsonObject - the json objectpublic int describeContents()
public void writeToParcel(Parcel dest,
int flags)