summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-10-15 16:04:22 +0200
committerJoram Wilander <jwawilander@gmail.com>2018-10-15 10:04:22 -0400
commitc1e5fff56534387864565d7c910d49e11a3add4a (patch)
tree6c6cddc3f747a95f186a2e1cbb3a745eb750271f /plugin/api.go
parent0267a1f76e48ae833a4f951c82e69db59d39b314 (diff)
downloadchat-c1e5fff56534387864565d7c910d49e11a3add4a.tar.gz
chat-c1e5fff56534387864565d7c910d49e11a3add4a.tar.bz2
chat-c1e5fff56534387864565d7c910d49e11a3add4a.zip
Add GetPostsSince() to plugin API (#9649)
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
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)