From c1e5fff56534387864565d7c910d49e11a3add4a Mon Sep 17 00:00:00 2001 From: Hanzei <16541325+hanzei@users.noreply.github.com> Date: Mon, 15 Oct 2018 16:04:22 +0200 Subject: Add GetPostsSince() to plugin API (#9649) --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index 36012c23e..d64946f93 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -176,6 +176,9 @@ type API interface { // GetPost gets a post. GetPost(postId string) (*model.Post, *model.AppError) + // GetPostsSince gets posts created after a specified time as Unix time in milliseconds. + GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError) + // GetPostsForChannel gets a list of posts for a channel. GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError) -- cgit v1.2.3-1-g7c22