aboutsummaryrefslogtreecommitdiff
path: root/juick-server-core
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
parent030257f473a92693a4b696acfa745bbf64c98580 (diff)
Initial getNotifications query
* using Java 8 DateTime API where possible
Diffstat (limited to 'juick-server-core')
-rw-r--r--juick-server-core/build.gradle1
-rw-r--r--juick-server-core/src/main/java/com/juick/service/MessagesService.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/juick-server-core/build.gradle b/juick-server-core/build.gradle
index d231ab40..83a02452 100644
--- a/juick-server-core/build.gradle
+++ b/juick-server-core/build.gradle
@@ -11,6 +11,7 @@ dependencies {
compile "com.fasterxml.jackson.core:jackson-databind:${rootProject.jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-annotations:${rootProject.jacksonVersion}"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${rootProject.jacksonVersion}"
+ compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${rootProject.jacksonVersion}"
compile "rocks.xmpp:xmpp-core-client:0.7.4"
compile "rocks.xmpp:xmpp-extensions-client:0.7.4"
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);
}