Commit #7: Events thread-based + new easier Extractor.py + our own Timer class
[smartthings-infrastructure.git] / Event / Event.groovy
index a1d5e71d1b5b80f55eada67cf6dbe136254e1e3b..794dbca4387c59a98b08241e082f1ecba0e717f5 100644 (file)
@@ -11,18 +11,18 @@ public class Event {
        private String descriptionText
        private boolean isStateChange
        private String unit
-       private LinkedHashMap data
+       private ArrayList data
        
-       Event() {
-               this.deviceId = 0
-               this.linkText = ""
-               this.value = ""
-               this.displayName = ""
-               this.name = ""
-               this.descriptionText = ""
-               this.isStateChange = false
-               this.unit = ""
-               this.data = []
-               this.displayed = false
+       Event(String value, String name, int deviceId, String descriptionText, boolean displayed, String linkText, String displayName, boolean isStateChange, String unit, ArrayList data) {
+               this.deviceId = deviceId
+               this.linkText = linkText
+               this.value = value
+               this.displayName = displayName
+               this.name = name
+               this.descriptionText = descriptionText
+               this.isStateChange = isStateChange
+               this.unit = unit
+               this.data = data
+               this.displayed = displayed
        }
 }