From e03b55be17261ed13ddf421bcf4a804a083a7614 Mon Sep 17 00:00:00 2001 From: Thorsten Ortlepp Date: Fri, 26 Apr 2024 00:30:46 +0200 Subject: added implementation --- .../java/eu/ortlepp/notificationsender/model/Notifications.java | 8 ++++++++ src/main/java/eu/ortlepp/notificationsender/model/Response.java | 8 ++++++++ src/main/java/eu/ortlepp/notificationsender/model/Status.java | 9 +++++++++ 3 files changed, 25 insertions(+) create mode 100644 src/main/java/eu/ortlepp/notificationsender/model/Notifications.java create mode 100644 src/main/java/eu/ortlepp/notificationsender/model/Response.java create mode 100644 src/main/java/eu/ortlepp/notificationsender/model/Status.java (limited to 'src/main/java/eu/ortlepp/notificationsender/model') 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 +} -- cgit v1.2.3