public class Config extends java.lang.Object implements IConfig, android.os.Parcelable
Please, consider fetching and applying Configs for Beacon once you establish connection with Beacon device.
By convention this model is fully immutable.
To create new instance of the model, please use the Config.Builder
.
Modifier and Type | Class and Description |
---|---|
static class |
Config.Builder
Config Builder.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Config> |
CREATOR
Parcelable CREATOR constant.
|
protected int |
databaseId
The Database id.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object object) |
static Config |
from(org.json.JSONObject jsonObject)
Create Config instance from JSON content.
|
int |
getDatabaseId()
Gets database id.
|
java.lang.String |
getDeviceName()
Gets device name from config
|
java.lang.String |
getDevicePassword()
Gets device password from config
|
java.util.List<DeviceProfile> |
getDeviceProfiles()
Gets device profiles
|
java.lang.String |
getDeviceUniqueId()
Gets beacon unique id.
|
java.util.UUID |
getId()
Gets Config id.
|
java.lang.String |
getInstanceId()
Gets Instance Id
|
int |
getInterval()
Gets interval.
|
int |
getMajor()
Gets major.
|
int |
getMinor()
Gets minor.
|
java.lang.String |
getNamespace()
Gets Eddystone namespace
|
java.util.UUID |
getProximityUUID()
Gets proximity uUID.
|
int |
getTxPower()
Gets tx power.
|
java.lang.String |
getUrl()
Gets Eddystone Url
|
int |
hashCode() |
java.lang.Boolean |
isShuffled()
Checks if device is shuffled
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Config> CREATOR
StackOverflowError
FileData
as its member will be recreated
with this member set to null. Please organise the access to the data in different way.
For more information concerning parceling see attached links.
protected final int databaseId
SQLiteDatabase
). If you
do not need to use it, ignore it during model building.public java.util.UUID getId()
IConfig
public java.lang.String getDeviceUniqueId()
IConfig
getDeviceUniqueId
in interface IConfig
public java.util.UUID getProximityUUID()
IConfig
getProximityUUID
in interface IConfig
public int getMajor()
IConfig
public int getMinor()
IConfig
public int getTxPower()
IConfig
getTxPower
in interface IConfig
public int getInterval()
IConfig
getInterval
in interface IConfig
public java.lang.String getNamespace()
IConfig
getNamespace
in interface IConfig
public java.lang.String getInstanceId()
IConfig
getInstanceId
in interface IConfig
public java.lang.String getUrl()
IConfig
public java.util.List<DeviceProfile> getDeviceProfiles()
IConfig
getDeviceProfiles
in interface IConfig
public java.lang.Boolean isShuffled()
IConfig
isShuffled
in interface IConfig
public java.lang.String getDeviceName()
IConfig
getDeviceName
in interface IConfig
public java.lang.String getDevicePassword()
IConfig
getDevicePassword
in interface IConfig
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public static Config from(org.json.JSONObject jsonObject)
jsonObject
- the json objectpublic int getDatabaseId()
public int describeContents()