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(Bundle bundle,
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(JSONObject jsonObject)
From device.
|
static java.util.List<IDevice> |
fromList(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
|
java.lang.String |
getMacAddress()
Gets MAC address.
|
int |
getMajor()
Gets Major.
|
java.util.UUID |
getManagerId()
Gets manager id.
|
int |
getMinor()
Gets Minor.
|
Model |
getModel()
Gets Model
|
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(Bundle bundle) |
void |
writeToParcel(Parcel dest,
int flags) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getSecureNamespace, getSecureProximityUUID, isShuffled
protected final int databaseId
android.database.sqlite.SQLiteDatabase
). If you
do not need to use it, ignore it during model building.protected Device(Bundle bundle, Parcel parcel)
protected Device(Device.Builder builder)
protected abstract void parcelProperties(Bundle bundle)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.UUID getId()
IDevice
public java.util.UUID getProximityUUID()
IDevice
getProximityUUID
in interface IDevice
public java.lang.String getMacAddress()
IDevice
getMacAddress
in interface IDevice
public int getMajor()
IDevice
public int getMinor()
IDevice
public int getInterval()
IDevice
getInterval
in interface IDevice
public java.lang.String getName()
IDevice
public java.lang.String getAlias()
IDevice
public int getTxPower()
IDevice
getTxPower
in interface IDevice
public java.lang.String getUniqueId()
IDevice
getUniqueId
in interface IDevice
public DeviceType getDeviceType()
IDevice
getDeviceType
in interface IDevice
public java.util.UUID getManagerId()
IDevice
getManagerId
in interface IDevice
public int getActionsCount()
IDevice
getActionsCount
in interface IDevice
public java.lang.String getLatitude()
IDevice
getLatitude
in interface IDevice
public java.lang.String getLongitude()
IDevice
getLongitude
in interface IDevice
public Specification getSpecification()
IDevice
getSpecification
in interface IDevice
public java.util.List<DeviceProfile> getDeviceProfiles()
IDevice
getDeviceProfiles
in interface IDevice
public java.lang.String getFirmwareVersion()
IDevice
getFirmwareVersion
in interface IDevice
public java.lang.String getInstanceId()
IDevice
getInstanceId
in interface IDevice
public java.lang.String getUrl()
IDevice
public java.lang.String getNamespace()
IDevice
getNamespace
in interface IDevice
public void writeToParcel(Parcel dest, int flags)
protected int calculateHashCode()
public static Device from(JSONObject jsonObject)
jsonObject
- the json objectpublic static java.util.List<IDevice> fromList(JSONObject jsonObject)
jsonObject
- the json objectpublic int getDatabaseId()
public int describeContents()