java.io.Serializablepublic class VacuumSounpackInstallState
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
VacuumSounpackInstallState.Error |
|
static class |
VacuumSounpackInstallState.State |
| Constructor | Description |
|---|---|
VacuumSounpackInstallState(int progress,
VacuumSounpackInstallState.State state,
VacuumSounpackInstallState.Error error,
int sid) |
Create a new sounpack installation status object.
|
VacuumSounpackInstallState(org.json.JSONObject info) |
Generate a new sounpack installation status object from the response of a device.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.json.JSONObject |
construct(boolean includeSid) |
Construct the message the vacuum sends to the controlling device.
|
boolean |
equals(java.lang.Object o) |
|
VacuumSounpackInstallState.Error |
getError() |
|
int |
getProgress() |
|
int |
getSid() |
|
VacuumSounpackInstallState.State |
getState() |
|
int |
hashCode() |
|
void |
setError(VacuumSounpackInstallState.Error error) |
|
void |
setProgress(int progress) |
|
void |
setSid(int sid) |
|
void |
setState(VacuumSounpackInstallState.State state) |
|
java.lang.String |
toString() |
public VacuumSounpackInstallState(int progress,
VacuumSounpackInstallState.State state,
VacuumSounpackInstallState.Error error,
int sid)
progress - The installation progress. Must be between 0 including and 100 including.state - The installation status.error - The installation error.sid - The sounpack language id.public VacuumSounpackInstallState(org.json.JSONObject info)
info - The response to parse.public int getProgress()
public void setProgress(int progress)
progress - The installation progress. Must be between 0 including and 100 including.public VacuumSounpackInstallState.State getState()
public void setState(VacuumSounpackInstallState.State state)
state - The installation status.public VacuumSounpackInstallState.Error getError()
public void setError(VacuumSounpackInstallState.Error error)
error - The installation error.public int getSid()
public void setSid(int sid)
sid - The sounpack language id.public org.json.JSONObject construct(boolean includeSid)
includeSid - Whether to include the sounpack language id.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All rights reserved.