From d6c2ae93ea7b7433bf3da707efb54fefb07d0864 Mon Sep 17 00:00:00 2001 From: Jon Sundin Date: Tue, 30 Jan 2024 01:21:58 +0000 Subject: [PATCH] get message by id service method --- src/main/java/Service/MessageService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/Service/MessageService.java b/src/main/java/Service/MessageService.java index 1c67ea6..3929fc6 100644 --- a/src/main/java/Service/MessageService.java +++ b/src/main/java/Service/MessageService.java @@ -38,5 +38,9 @@ public Message insertMessage(int posted_by, String message_text, long time_poste public List getAllMessages() { return messageDAO.getAllMessages(); } + + public Message getMessageById(int message_id) { + return messageDAO.getMessageById(message_id); + } }