aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/eu/ortlepp/notificationsender/model
diff options
context:
space:
mode:
authorThorsten Ortlepp <post@ortlepp.eu>2024-04-26 00:30:46 +0200
committerThorsten Ortlepp <post@ortlepp.eu>2024-04-26 00:30:46 +0200
commite03b55be17261ed13ddf421bcf4a804a083a7614 (patch)
tree8512120756c494efe53c64f33e61a20316c17186 /src/main/java/eu/ortlepp/notificationsender/model
parentb6bdf180c777566bbe908303774e53c7d4e099c4 (diff)
downloadnotification-sender-e03b55be17261ed13ddf421bcf4a804a083a7614.zip
added implementation
Diffstat (limited to 'src/main/java/eu/ortlepp/notificationsender/model')
-rw-r--r--src/main/java/eu/ortlepp/notificationsender/model/Notifications.java8
-rw-r--r--src/main/java/eu/ortlepp/notificationsender/model/Response.java8
-rw-r--r--src/main/java/eu/ortlepp/notificationsender/model/Status.java9
3 files changed, 25 insertions, 0 deletions
diff --git a/src/main/java/eu/ortlepp/notificationsender/model/Notifications.java b/src/main/java/eu/ortlepp/notificationsender/model/Notifications.java
new file mode 100644
index 0000000..65f7620
--- /dev/null
+++ b/src/main/java/eu/ortlepp/notificationsender/model/Notifications.java
@@ -0,0 +1,8 @@
+package eu.ortlepp.notificationsender.model;
+
+/**
+ * The expected input data of the Lambda.
+ *
+ * @param messages The messages / notifications
+ */
+public record Notifications(String[] messages) {}
diff --git a/src/main/java/eu/ortlepp/notificationsender/model/Response.java b/src/main/java/eu/ortlepp/notificationsender/model/Response.java
new file mode 100644
index 0000000..d931bed
--- /dev/null
+++ b/src/main/java/eu/ortlepp/notificationsender/model/Response.java
@@ -0,0 +1,8 @@
+package eu.ortlepp.notificationsender.model;
+
+/**
+ * The response of a Lambda execution.
+ *
+ * @param status The final execution status of the Lambda
+ */
+public record Response(Status status) {}
diff --git a/src/main/java/eu/ortlepp/notificationsender/model/Status.java b/src/main/java/eu/ortlepp/notificationsender/model/Status.java
new file mode 100644
index 0000000..caeb0cd
--- /dev/null
+++ b/src/main/java/eu/ortlepp/notificationsender/model/Status.java
@@ -0,0 +1,9 @@
+package eu.ortlepp.notificationsender.model;
+
+/**
+ * The status of a Lambda execution, shown in the response.
+ */
+public enum Status {
+ SUCCESS,
+ FAILED
+}