java.io.Serializablepublic class VacuumCleanup
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
VacuumCleanup(java.time.Instant start,
java.time.Instant end,
long runtime,
long area,
boolean completed) |
Create a new cleanup information object.
|
VacuumCleanup(org.json.JSONArray msg) |
Generate a new cleanup information object from the response of a device.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.json.JSONArray |
construct() |
Construct the message the vacuum sends to the controlling device.
|
boolean |
equals(java.lang.Object o) |
|
long |
getArea() |
|
java.time.Instant |
getEnd() |
|
long |
getRuntime() |
|
java.time.Instant |
getStart() |
|
int |
hashCode() |
|
boolean |
isCompleted() |
|
java.lang.String |
toString() |
public VacuumCleanup(java.time.Instant start,
java.time.Instant end,
long runtime,
long area,
boolean completed)
start - The time the cleanup was started.end - The time the cleanup was finished.runtime - The total runtime of this cleanup.area - The cleaned area.completed - Weather this cleanup was completed.public VacuumCleanup(org.json.JSONArray msg)
msg - The response to parse.public java.time.Instant getStart()
public java.time.Instant getEnd()
public long getRuntime()
public long getArea()
public boolean isCompleted()
public org.json.JSONArray construct()
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.