public abstract class Device extends java.lang.Object implements IDevice
Beacon.Builder or CloudBeacon.Builder.| Modifier and Type | Class and Description |
|---|---|
static class |
Device.Builder<T extends Device,B extends Device.Builder<T,B>>
The type Builder.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
databaseId
The Database id.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Device(android.os.Bundle bundle,
android.os.Parcel parcel) |
protected |
Device(Device.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateHashCode() |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static Device |
from(org.json.JSONObject jsonObject)
From device.
|
static java.util.List<IDevice> |
fromList(org.json.JSONObject jsonObject)
From list of devices
|
Access |
getAccess()
Gets Access
|
int |
getActionsCount()
Gets actions count.
|
java.lang.String |
getAlias()
Gets alias.
|
int |
getDatabaseId()
Gets database id.
|
java.util.List<DeviceProfile> |
getDeviceProfiles()
Gets DeviceProfile list
|
DeviceType |
getDeviceType()
Gets type.
|
java.lang.String |
getFirmwareVersion()
Gets firmware version
|
java.util.UUID |
getId()
Gets id.
|
java.lang.String |
getInstanceId()
Gets instance id
|
int |
getInterval()
Gets interval.
|
java.lang.String |
getLatitude()
Gets latitude of device
|
java.lang.String |
getLongitude()
Gets longitude of device
|
int |
getMajor()
Gets Major.
|
java.util.UUID |
getManagerId()
Gets manager id.
|
int |
getMinor()
Gets Minor.
|
java.lang.String |
getName()
Gets name.
|
java.lang.String |
getNamespace()
Gets namespace
|
java.util.UUID |
getProximityUUID()
Gets Proximity UUID.
|
Specification |
getSpecification()
Gets Specification
|
int |
getTxPower()
Gets tx power.
|
java.lang.String |
getUniqueId()
Gets unique id.
|
java.lang.String |
getUrl()
Gets url
|
IVenue |
getVenue()
Gets venue.
|
int |
hashCode() |
protected abstract void |
parcelProperties(android.os.Bundle bundle) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSecureNamespace, getSecureProximityUUID, isShuffledprotected final int databaseId
SQLiteDatabase). If you
do not need to use it, ignore it during model building.protected Device(android.os.Bundle bundle,
android.os.Parcel parcel)
protected Device(Device.Builder builder)
protected abstract void parcelProperties(android.os.Bundle bundle)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.UUID getId()
IDevicepublic java.util.UUID getProximityUUID()
IDevicegetProximityUUID in interface IDevicepublic int getMajor()
IDevicepublic int getMinor()
IDevicepublic int getInterval()
IDevicegetInterval in interface IDevicepublic java.lang.String getName()
IDevicepublic java.lang.String getAlias()
IDevicepublic int getTxPower()
IDevicegetTxPower in interface IDevicepublic java.lang.String getUniqueId()
IDevicegetUniqueId in interface IDevicepublic DeviceType getDeviceType()
IDevicegetDeviceType in interface IDevicepublic java.util.UUID getManagerId()
IDevicegetManagerId in interface IDevicepublic int getActionsCount()
IDevicegetActionsCount in interface IDevicepublic java.lang.String getLatitude()
IDevicegetLatitude in interface IDevicepublic java.lang.String getLongitude()
IDevicegetLongitude in interface IDevicepublic Specification getSpecification()
IDevicegetSpecification in interface IDevicepublic java.util.List<DeviceProfile> getDeviceProfiles()
IDevicegetDeviceProfiles in interface IDevicepublic java.lang.String getFirmwareVersion()
IDevicegetFirmwareVersion in interface IDevicepublic java.lang.String getInstanceId()
IDevicegetInstanceId in interface IDevicepublic java.lang.String getUrl()
IDevicepublic java.lang.String getNamespace()
IDevicegetNamespace in interface IDevicepublic void writeToParcel(android.os.Parcel dest,
int flags)
protected int calculateHashCode()
public static Device from(org.json.JSONObject jsonObject)
jsonObject - the json objectpublic static java.util.List<IDevice> fromList(org.json.JSONObject jsonObject)
jsonObject - the json objectpublic int getDatabaseId()
public int describeContents()