diff options
author | Thorsten Ortlepp <post@ortlepp.eu> | 2024-04-26 00:30:46 +0200 |
---|---|---|
committer | Thorsten Ortlepp <post@ortlepp.eu> | 2024-04-26 00:30:46 +0200 |
commit | e03b55be17261ed13ddf421bcf4a804a083a7614 (patch) | |
tree | 8512120756c494efe53c64f33e61a20316c17186 /src/main/java/eu/ortlepp/notificationsender/model | |
parent | b6bdf180c777566bbe908303774e53c7d4e099c4 (diff) | |
download | notification-sender-e03b55be17261ed13ddf421bcf4a804a083a7614.zip |
added implementation
Diffstat (limited to 'src/main/java/eu/ortlepp/notificationsender/model')
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 +} |