From d1dd4a5ab8cb6065db6233a64ca8f7802f1978c9 Mon Sep 17 00:00:00 2001 From: mathias Date: Sat, 2 Oct 2021 17:22:12 +0200 Subject: [PATCH] Created the NotFoundHandler to handle messages that could not be replied (for example not finished listeners) --- .../autoresponder/handler/NotFoundHandler.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main/java/de/gnmyt/autoresponder/handler/NotFoundHandler.java diff --git a/src/main/java/de/gnmyt/autoresponder/handler/NotFoundHandler.java b/src/main/java/de/gnmyt/autoresponder/handler/NotFoundHandler.java new file mode 100644 index 0000000..31e654e --- /dev/null +++ b/src/main/java/de/gnmyt/autoresponder/handler/NotFoundHandler.java @@ -0,0 +1,16 @@ +package de.gnmyt.autoresponder.handler; + +import java.util.List; + +public abstract class NotFoundHandler { + + /** + * Handles the specific request whenever the message could not be found + * + * @param sender The sender of the message / the creator of the request + * @param message The message that the author sent + * @return the list of messages that you want to reply + */ + public abstract List handleRequest(String sender, String message); + +}