From f3963f0b12055ba6710b9b28ddc93a5b5fe91d67 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 22 Sep 2017 16:39:00 +0300 Subject: Initial getNotifications query * using Java 8 DateTime API where possible --- juick-server-core/src/main/java/com/juick/service/MessagesService.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-server-core/src/main/java/com/juick') diff --git a/juick-server-core/src/main/java/com/juick/service/MessagesService.java b/juick-server-core/src/main/java/com/juick/service/MessagesService.java index 0644dd99..870a7249 100644 --- a/juick-server-core/src/main/java/com/juick/service/MessagesService.java +++ b/juick-server-core/src/main/java/com/juick/service/MessagesService.java @@ -20,6 +20,7 @@ package com.juick.service; import com.juick.User; import com.juick.server.helpers.ResponseReply; +import java.time.LocalDateTime; import java.util.Collection; import java.util.List; @@ -100,4 +101,6 @@ public interface MessagesService { List getLastMessages(int hours); List getLastReplies(int hours); + + List getNotifications(User user, LocalDateTime before); } -- cgit v1.2.3