forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[neato] add neato clean with map (openhab#8310)
Signed-off-by: Giuseppe Lapenta <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
- Loading branch information
1 parent
3287085
commit 5ed0911
Showing
7 changed files
with
162 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...nhab.binding.neato/src/main/java/org/openhab/binding/neato/internal/classes/Category.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright (c) 2010-2020 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.neato.internal.classes; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The enum {@link Category} is the internal class to set category to the cleaning request | ||
* | ||
* @author Lapenta Giuseppe - Initial Contribution | ||
*/ | ||
@NonNullByDefault | ||
public enum Category { | ||
MANUAL(1), | ||
HOUSE(2), | ||
SPOT(3), | ||
MAP(4); | ||
private final int category; | ||
|
||
Category(int category) { | ||
this.category = category; | ||
} | ||
|
||
public int getCategory() { | ||
return category; | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
....openhab.binding.neato/src/main/java/org/openhab/binding/neato/internal/classes/Mode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) 2010-2020 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.neato.internal.classes; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The enum {@link Mode} is the internal class to set cleaning mode to the cleaning request | ||
* | ||
* @author Lapenta Giuseppe - Initial Contribution | ||
*/ | ||
@NonNullByDefault | ||
public enum Mode { | ||
ECO(1), | ||
TURBO(2); // Note that navigationMode can only be set to 3 if mode is 2, otherwise an error will be returned. | ||
|
||
private final int mode; | ||
|
||
Mode(int mode) { | ||
this.mode = mode; | ||
} | ||
|
||
public int getMode() { | ||
return mode; | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
...inding.neato/src/main/java/org/openhab/binding/neato/internal/classes/NavigationMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright (c) 2010-2020 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.neato.internal.classes; | ||
|
||
import org.eclipse.jdt.annotation.NonNullByDefault; | ||
|
||
/** | ||
* The enum {@link NavigationMode} is the internal class to set navigation mode to the cleaning request | ||
* | ||
* @author Lapenta Giuseppe - Initial Contribution | ||
*/ | ||
@NonNullByDefault | ||
public enum NavigationMode { | ||
NORMAL(1), | ||
EXTRA_CARE(2), | ||
DEEP(3); // Note that navigationMode can only be set to 3 if mode is 2, otherwise an error will be returned. | ||
private final int navigationMode; | ||
|
||
NavigationMode(int navigationMode) { | ||
this.navigationMode = navigationMode; | ||
} | ||
|
||
public int getNavigationMode() { | ||
return navigationMode; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters