-
-
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.
Signed-off-by: Dmitriy Ponomarev <diamond5170@gmail.com>
- Loading branch information
1 parent
ba87c33
commit 8b6bf92
Showing
5 changed files
with
103 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
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
118 changes: 63 additions & 55 deletions
118
....openhab.binding.vera/src/main/java/org/openhab/binding/vera/controller/CategoryType.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 |
---|---|---|
@@ -1,55 +1,63 @@ | ||
package org.openhab.binding.vera.controller; | ||
|
||
public enum CategoryType { | ||
Controller(0, "Controller"), | ||
Interface(1, "Interface"), | ||
DimmableLight(2, "Dimmable Light"), | ||
Switch(3, "Switch"), | ||
SecuritySensor(4, "Security Sensor"), | ||
HVAC(5, "HVAC"), | ||
Camera(6, "Camera"), | ||
DoorLock(7, "Door Lock"), | ||
WindowCovering(8, "Window Covering"), | ||
RemoteControl(9, "Remote Control"), | ||
IRTransmitter(10, "IR Transmitter"), | ||
GenericIO(11, "Generic I/O"), | ||
GenericSensor(12, "Generic Sensor"), | ||
SerialPort(13, "Serial Port"), | ||
SceneController(14, "Scene Controller"), | ||
AV(15, "A/V"), | ||
HumiditySensor(16, "Humidity Sensor"), | ||
TemperatureSensor(17, "Temperature Sensor"), | ||
LightSensor(18, "Light Sensor"), | ||
ZWaveInterface(19, "Z-Wave Interface"), | ||
InsteonInterface(20, "Insteon Interface"), | ||
PowerMeter(21, "Power Meter"), | ||
AlarmPanel(22, "Alarm Panel"), | ||
AlarmPartition(23, "Alarm Partition"), | ||
Siren(24, "Siren"), | ||
Weather(25, "Weather"), | ||
PhilipsController(26, "Philips Controller"), | ||
Appliance(27, "Appliance"), | ||
UVSensor(28, "UV Sensor"), | ||
Unknown(-1, "Unknown"); | ||
|
||
private int id; | ||
private String name; | ||
|
||
private CategoryType(int id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "{" + id + ", " + name + "}"; | ||
} | ||
} | ||
/** | ||
* Copyright (c) 2010-2017 by the respective copyright holders. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package org.openhab.binding.vera.controller; | ||
|
||
public enum CategoryType { | ||
Controller(0, "Controller"), | ||
Interface(1, "Interface"), | ||
DimmableLight(2, "Dimmable Light"), | ||
Switch(3, "Switch"), | ||
SecuritySensor(4, "Security Sensor"), | ||
HVAC(5, "HVAC"), | ||
Camera(6, "Camera"), | ||
DoorLock(7, "Door Lock"), | ||
WindowCovering(8, "Window Covering"), | ||
RemoteControl(9, "Remote Control"), | ||
IRTransmitter(10, "IR Transmitter"), | ||
GenericIO(11, "Generic I/O"), | ||
GenericSensor(12, "Generic Sensor"), | ||
SerialPort(13, "Serial Port"), | ||
SceneController(14, "Scene Controller"), | ||
AV(15, "A/V"), | ||
HumiditySensor(16, "Humidity Sensor"), | ||
TemperatureSensor(17, "Temperature Sensor"), | ||
LightSensor(18, "Light Sensor"), | ||
ZWaveInterface(19, "Z-Wave Interface"), | ||
InsteonInterface(20, "Insteon Interface"), | ||
PowerMeter(21, "Power Meter"), | ||
AlarmPanel(22, "Alarm Panel"), | ||
AlarmPartition(23, "Alarm Partition"), | ||
Siren(24, "Siren"), | ||
Weather(25, "Weather"), | ||
PhilipsController(26, "Philips Controller"), | ||
Appliance(27, "Appliance"), | ||
UVSensor(28, "UV Sensor"), | ||
Unknown(-1, "Unknown"); | ||
|
||
private int id; | ||
private String name; | ||
|
||
private CategoryType(int id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "{" + id + ", " + name + "}"; | ||
} | ||
} |
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