projects
/
rhynodge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parse and load watchers from configuration.
[rhynodge.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
rhynodge
/
loader
/
Chain.java
diff --git
a/src/main/java/net/pterodactylus/rhynodge/loader/Chain.java
b/src/main/java/net/pterodactylus/rhynodge/loader/Chain.java
index
8fc6c35
..
2587d09
100644
(file)
--- a/
src/main/java/net/pterodactylus/rhynodge/loader/Chain.java
+++ b/
src/main/java/net/pterodactylus/rhynodge/loader/Chain.java
@@
-184,6
+184,10
@@
public class Chain {
@JsonProperty
private Part trigger;
@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;
/** 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
* Returns the action of this chain.
*
* @return The action of this chain