X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotification.java;h=7d3e3c7cb1587d2f27551fc9b1a93d651ae8f44f;hb=d8d8d84c87832502cff8c67cabfc11c639a78345;hp=423bea47a3d996b34d70c370363229660f80f1af;hpb=92b5ee58620b50020b3fe9a1a942ded9a0d59c9e;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java index 423bea4..7d3e3c7 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotification.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotification.java @@ -49,6 +49,7 @@ public class ListNotification extends TemplateNotification { public ListNotification(String id, String key, Template template) { super(id, template); template.set(key, elements); + template.set("notification", this); } // @@ -56,6 +57,15 @@ public class ListNotification extends TemplateNotification { // /** + * Returns the current list of elements. + * + * @return The current list of elements + */ + public List getElements() { + return new ArrayList(elements); + } + + /** * Returns whether there are any new elements. * * @return {@code true} if there are no new elements, {@code false} if there