Adding manual transaction feature to new infrastructure
[smartthings-infrastructure.git] / Event / Event.groovy
index 83ba658355e5d838fa72c10b92f1c184b57bba5b..e7956c2a35c2f0f6762d3e38afc942c8574212cb 100644 (file)
@@ -18,6 +18,7 @@ public class Event {
        private double doubleValue
        private boolean physical
        private def date
+       private boolean isManualTransaction
        
        Event(String value, String name, String deviceId, String descriptionText, boolean displayed, String linkText, String displayName, boolean isStateChange, String unit, String data) {
                this.deviceId = deviceId
@@ -41,4 +42,8 @@ public class Event {
                this.physical = true
                this.date = new Date()
        }
+
+       void setManualTransaction(boolean isTrue) {
+               isManualTransaction = isTrue;
+       }
 }