public class Config
extends java.lang.Object
implements android.os.Parcelable
Device
must be updated with.
It's simply a container of device's settings that can be configured.
KontaktCloud
.
Config.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
Config.Builder
Builder class that is used to build
Config instances from values configured by the setters. |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Config> |
CREATOR |
static int |
TEMPERATURE_OFFSET_DISABLED_VALUE |
Modifier and Type | Method and Description |
---|---|
void |
applyConfig(Config config) |
void |
applySecureConfig(Config secureConfig) |
void |
applySecureRequest(java.lang.String secureRequest)
Specifies request data that could be sent to the device.
|
void |
applySecureResponse(java.lang.String secureResponse,
long secureResponseTime)
Specifies response data received from the device after successful configuration update.
|
static Config.Builder |
builder() |
void |
changePassword(java.lang.String password) |
int |
describeContents() |
boolean |
equals(java.lang.Object object) |
java.util.Map<java.lang.String,java.lang.String> |
getCustomConfiguration() |
Network |
getGatewayNetwork() |
java.lang.String |
getHexUrl()
Returns the URL value encoded in hexed string.
|
java.lang.String |
getInstanceId() |
int |
getInterval() |
int |
getMajor() |
int |
getMinor() |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
java.util.List<PacketType> |
getPackets() |
java.lang.String |
getPassword() |
PowerSaving |
getPowerSaving() |
java.util.List<DeviceProfile> |
getProfiles() |
java.util.UUID |
getProximity() |
java.util.List<java.lang.Integer> |
getRssi0m() |
java.util.List<java.lang.Integer> |
getRssi1m() |
java.lang.String |
getSecureRequest()
Returns Base64 encoded request data that need to be sent to the device.
|
java.lang.String |
getSecureResponse()
Returns Base64 encoded response data received from the device after successful configuration update.
|
long |
getSecureResponseTime()
Returns a timestamp of when the secure response was received.
|
java.lang.Boolean |
getShuffled() |
int |
getTemperatureOffset() |
int |
getTxPower() |
java.lang.String |
getUniqueId() |
java.lang.String |
getUrl() |
int |
hashCode() |
boolean |
isSecureConfig()
Checks if the config is secure or not.
|
boolean |
isShuffled() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Config> CREATOR
public static final int TEMPERATURE_OFFSET_DISABLED_VALUE
public static Config.Builder builder()
public void applyConfig(Config config)
public void applySecureConfig(Config secureConfig)
public void applySecureRequest(java.lang.String secureRequest)
secureRequest
- secure request data.public void applySecureResponse(java.lang.String secureResponse, long secureResponseTime)
secureResponse
- secure response data received from the device.secureResponseTime
- timestamp of when the response was received.public void changePassword(java.lang.String password)
public boolean isSecureConfig()
true
if the config is secure, false
otherwise.public java.lang.String getUniqueId()
public java.util.UUID getProximity()
public int getMajor()
public int getMinor()
public int getTxPower()
public int getInterval()
public java.lang.String getNamespace()
public java.lang.String getHexUrl()
public java.lang.String getUrl()
public java.lang.String getInstanceId()
public java.util.List<DeviceProfile> getProfiles()
public java.util.List<PacketType> getPackets()
public java.lang.Boolean getShuffled()
public boolean isShuffled()
public PowerSaving getPowerSaving()
public java.lang.String getName()
public java.lang.String getPassword()
public java.util.List<java.lang.Integer> getRssi1m()
public java.util.List<java.lang.Integer> getRssi0m()
public int getTemperatureOffset()
public Network getGatewayNetwork()
public java.util.Map<java.lang.String,java.lang.String> getCustomConfiguration()
public java.lang.String getSecureRequest()
public java.lang.String getSecureResponse()
public long getSecureResponseTime()
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 int describeContents()
describeContents
in interface android.os.Parcelable
public java.lang.String toString()
toString
in class java.lang.Object