Parse and load watchers from configuration.
[rhynodge.git] / src / main / java / net / pterodactylus / rhynodge / loader / Chain.java
index 8fc6c35..2587d09 100644 (file)
@@ -184,6 +184,10 @@ public class Chain {
        @JsonProperty
        private Part trigger;
 
+       /** A combination of query, filters, and a trigger. */
+       @JsonProperty
+       private Part watcher;
+
        /** The action of the chain. */
        @JsonProperty
        private Part action;
@@ -238,6 +242,15 @@ public class Chain {
        }
 
        /**
+        * Returns an optional watcher.
+        *
+        * @return The watcher of this chain
+        */
+       public Part watcher() {
+               return watcher;
+       }
+
+       /**
         * Returns the action of this chain.
         *
         * @return The action of this chain