Class LikableContentResource


  • public class LikableContentResource
    extends Object
    • Method Detail

      • getLikesForIds

        public javax.ws.rs.core.Response getLikesForIds​(Set<Long> contentIds,
                                                        Integer max)
        Get the likes for a list of contents
        Parameters:
        contentIds - a list of content IDs
        max - the maximum number of likes that can be returned
      • getLikes

        public javax.ws.rs.core.Response getLikes​(Long contentId,
                                                  String expand,
                                                  Integer max,
                                                  Boolean commentLikes)
        Parameters:
        expand - the name of the field in the JSON entity to expand. The value of "user" has been deprecated as the user will always be expanded.
      • addLike

        public javax.ws.rs.core.Response addLike​(Long contentId)
      • removeLike

        public javax.ws.rs.core.Response removeLike​(Long contentId)
      • getCommentLikes

        public javax.ws.rs.core.Response getCommentLikes​(Long contentId)