aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-22 16:39:00 +0300
committerGravatar Vitaly Takmazov2017-09-22 16:39:00 +0300
commitf3963f0b12055ba6710b9b28ddc93a5b5fe91d67 (patch)
treee05c2a4ab6cdbda573c800d79b89572840222fea /juick-server-core/src
parent030257f473a92693a4b696acfa745bbf64c98580 (diff)
Initial getNotifications query
* using Java 8 DateTime API where possible
Diffstat (limited to 'juick-server-core/src')
-rw-r--r--juick-server-core/src/main/java/com/juick/service/MessagesService.java3
1 files changed, 3 insertions, 0 deletions
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<Integer> getLastMessages(int hours);
List<ResponseReply> getLastReplies(int hours);
+
+ List<com.juick.Message> getNotifications(User user, LocalDateTime before);
}