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); + } }