-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
153 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
35 changes: 35 additions & 0 deletions
35
...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,35 @@ | ||
/** | ||
* 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; | ||
|
||
/** | ||
* The enum {@link Category} is the internal class to set category to the cleaning request | ||
* | ||
* @author Lapenta Giuseppe | ||
*/ | ||
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; | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
....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,34 @@ | ||
/** | ||
* 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; | ||
|
||
/** | ||
* The enum {@link Mode} is the internal class to set cleaning mode to the cleaning request | ||
* | ||
* @author Lapenta Giuseppe | ||
*/ | ||
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; | ||
} | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...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,34 @@ | ||
/** | ||
* 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; | ||
|
||
/** | ||
* The enum {@link NavigationMode} is the internal class to set navigation mode to the cleaning request | ||
* | ||
* @author Lapenta Giuseppe | ||
*/ | ||
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