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/build.gradle | 1 + juick-server-core/src/main/java/com/juick/service/MessagesService.java | 3 +++ 2 files changed, 4 insertions(+) (limited to 'juick-server-core') 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 getLastMessages(int hours); List getLastReplies(int hours); + + List getNotifications(User user, LocalDateTime before); } -- cgit v1.2.3