public class Firmware extends java.lang.Object implements IFirmware
Firmware.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
Firmware.Builder
Firmware Builder.
|
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR
Parcelable CREATOR constant.
|
protected int |
databaseId
The Database id.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static Firmware |
from(JSONObject jsonObject)
Creates new Firmware instance from JSON content and File data.
|
static java.util.List<IFirmware> |
fromList(JSONObject sourceObject) |
int |
getDatabaseId()
Gets database id.
|
java.lang.String |
getDescription()
Gets description.
|
DeviceType |
getDeviceType()
Gets device type
|
java.util.ArrayList<java.lang.String> |
getDeviceUniqueIdList()
Gets list of unique ids target devices
|
java.util.UUID |
getId()
Gets id.
|
java.lang.String |
getName()
Gets name.
|
java.lang.String |
getUrl()
Gets url with Firmware content to download.
|
java.lang.String |
getValidVersions()
Gets valid versions.
|
int |
hashCode() |
boolean |
isImportant()
Returns true if the firmware is important.
|
boolean |
isOptional()
Checks is firmware update not mandatory
|
boolean |
isScheduled()
Checks is firmware scheduled to update
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final <any> 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.
protected final int databaseId
android.database.sqlite.SQLiteDatabase
). If you
do not need to use it, ignore it during model building.public java.util.UUID getId()
IFirmware
public java.lang.String getName()
IFirmware
public java.lang.String getDescription()
IFirmware
getDescription
in interface IFirmware
public java.lang.String getValidVersions()
IFirmware
getValidVersions
in interface IFirmware
public boolean isImportant()
IFirmware
isImportant
in interface IFirmware
public java.lang.String getUrl()
IFirmware
public DeviceType getDeviceType()
IFirmware
getDeviceType
in interface IFirmware
DeviceType
of target devicepublic boolean isScheduled()
IFirmware
isScheduled
in interface IFirmware
public boolean isOptional()
IFirmware
isOptional
in interface IFirmware
public java.util.ArrayList<java.lang.String> getDeviceUniqueIdList()
IFirmware
getDeviceUniqueIdList
in interface IFirmware
public void writeToParcel(Parcel dest, int flags)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Firmware from(JSONObject jsonObject)
jsonObject
- the json objectpublic static java.util.List<IFirmware> fromList(JSONObject sourceObject)
public int getDatabaseId()
public int describeContents()