use of com.pratilipi.common.util.BlogPostFilter in project pratilipi by Pratilipi.
the class BlogPostListApi method get.
@Get
public Response get(GetRequest request) throws InsufficientAccessException {
BlogPostFilter blogPostFilter = new BlogPostFilter();
blogPostFilter.setBlogId(request.blogId);
blogPostFilter.setLanguage(request.language);
blogPostFilter.setState(request.state);
DataListCursorTuple<BlogPostData> blogPostDataListCursorTuple = BlogPostDataUtil.getBlogPostDataList(blogPostFilter, request.cursor, 0, request.resultCount == null ? 10 : request.resultCount);
return new Response(blogPostDataListCursorTuple.getDataList(), blogPostDataListCursorTuple.getCursor());
}
Aggregations