public interface PostApi
ApiResponse<Post> createPost(Post post)
default ApiResponse<Post> updatePost(Post post)
ApiResponse<Post> updatePost(String postId, Post post)
ApiResponse<Post> patchPost(String postId, PostPatch patch)
ApiResponse<Boolean> pinPost(String postId)
ApiResponse<Boolean> unpinPost(String postId)
default ApiResponse<Post> getPost(String postId)
ApiResponse<Post> getPost(String postId, String etag)
ApiResponse<Boolean> deletePost(String postId)
default ApiResponse<PostList> getPostThread(String postId)
ApiResponse<PostList> getPostThread(String postId, String etag)
default ApiResponse<PostList> getPostsForChannel(String channelId)
default ApiResponse<PostList> getPostsForChannel(String channelId, Pager pager)
ApiResponse<PostList> getPostsForChannel(String channelId, Pager pager, String etag)
default ApiResponse<PostList> getFlaggedPostsForUser(String userId)
ApiResponse<PostList> getFlaggedPostsForUser(String userId, Pager pager)
default ApiResponse<PostList> getFlaggedPostsForUserInTeam(String userId, String teamId)
ApiResponse<PostList> getFlaggedPostsForUserInTeam(String userId, String teamId, Pager pager)
default ApiResponse<PostList> getFlaggedPostsForUserInChannel(String userId, String channelId)
ApiResponse<PostList> getFlaggedPostsForUserInChannel(String userId, String channelId, Pager pager)
default ApiResponse<PostList> getPostsSince(String channelId, Date since)
default ApiResponse<PostList> getPostsSince(String channelId, OffsetDateTime since)
ApiResponse<PostList> getPostsSince(String channelId, long since)
default ApiResponse<PostList> getPostsAfter(String channelId, String postId)
default ApiResponse<PostList> getPostsAfter(String channelId, String postId, Pager pager)
ApiResponse<PostList> getPostsAfter(String channelId, String postId, Pager pager, String etag)
default ApiResponse<PostList> getPostsBefore(String channelId, String postId)
default ApiResponse<PostList> getPostsBefore(String channelId, String postId, Pager pager)
ApiResponse<PostList> getPostsBefore(String channelId, String postId, Pager pager, String etag)
default ApiResponse<PostList> searchPosts(String teamId, String terms)
ApiResponse<PostList> searchPosts(String teamId, String terms, boolean isOrSearch)
Copyright © 2018. All rights reserved.