java.io.Serializablepublic class VacuumDoNotDisturb
extends java.lang.Object
implements java.io.Serializable
| Constructor | Description |
|---|---|
VacuumDoNotDisturb(java.time.LocalTime start,
java.time.LocalTime end) |
Create a new enabled do not disturb settings object.
|
VacuumDoNotDisturb(java.time.LocalTime start,
java.time.LocalTime end,
boolean enabled) |
Create a new do not disturb settings object.
|
VacuumDoNotDisturb(org.json.JSONArray dnd) |
Generate a new enabled do not disturb settings object from the response of a device.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.json.JSONArray |
construct() |
Construct the message the controlling device sends to the vacuum.
|
org.json.JSONArray |
construct(boolean server) |
Construct the message the vacuum sends to the controlling device or the device sends to the vacuum.
|
boolean |
equals(java.lang.Object o) |
|
java.time.LocalTime |
getEnd() |
|
java.time.LocalTime |
getStart() |
|
int |
hashCode() |
|
boolean |
isEnabled() |
|
void |
setEnabled(boolean enabled) |
|
java.lang.String |
toString() |
public VacuumDoNotDisturb(java.time.LocalTime start,
java.time.LocalTime end,
boolean enabled)
start - The start time of the do not disturb period.end - The end time of the the do not disturb period.enabled - Weather the timer should be enabled.public VacuumDoNotDisturb(java.time.LocalTime start,
java.time.LocalTime end)
start - The start time of the do not disturb period.end - The end time of the the do not disturb period.public VacuumDoNotDisturb(org.json.JSONArray dnd)
dnd - The response to parse.public java.time.LocalTime getStart()
public java.time.LocalTime getEnd()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - True to enable, false to disable the timer.public org.json.JSONArray construct()
public org.json.JSONArray construct(boolean server)
server - True if the constructed message is in the format from vacuum to controlling device.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.