public class SecureSingleConfig
extends java.lang.Object
Can be retrieved from API as a list of pending configs for device and as well as a response from beacon to API
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
Constructor and Description |
---|
SecureSingleConfig(java.lang.String uniqueId,
java.lang.String secureMessage,
long unixTimestamp)
Constructor for SecureSingleConfig
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static SecureSingleConfig |
fromJson(JSONObject object)
Creates SecureSingleConfig from JSONObject
|
static java.util.List<SecureSingleConfig> |
fromListJson(JSONObject object)
Creates List of SecureSingleConfig from JSONObject
|
java.lang.String |
getSecureMessage() |
java.lang.String |
getUniqueId() |
long |
getUnixTimestamp() |
java.lang.String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public SecureSingleConfig(java.lang.String uniqueId, java.lang.String secureMessage, long unixTimestamp)
uniqueId
- device unique idsecureMessage
- secure message from device or for deviceunixTimestamp
- timestamp when applied to devicepublic java.lang.String getUniqueId()
public java.lang.String getSecureMessage()
public long getUnixTimestamp()
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void writeToParcel(Parcel dest, int flags)
public static final SecureSingleConfig fromJson(JSONObject object)
object
- the json objectpublic static final java.util.List<SecureSingleConfig> fromListJson(JSONObject object)
object
- the json object