Class LikeRequestHandler

    • Constructor Detail

      • LikeRequestHandler

        public LikeRequestHandler​(DataService dataService,
                                  TokenService tokenService,
                                  com.google.gson.Gson gson)
    • Method Detail

      • handleGetLikedPosts

        public Collection<Post> handleGetLikedPosts​(spark.Request request,
                                                    spark.Response response)
      • handleGetPostLikes

        public Collection<Integer> handleGetPostLikes​(spark.Request request,
                                                      spark.Response response)
      • handleGetCommentLikes

        public Collection<Integer> handleGetCommentLikes​(spark.Request request,
                                                         spark.Response response)
      • handleLikeComment

        public Boolean handleLikeComment​(spark.Request request,
                                         spark.Response response)
                                  throws IOException
        Throws:
        IOException
      • handleUnlikeComment

        public Boolean handleUnlikeComment​(spark.Request request,
                                           spark.Response response)
                                    throws IOException
        Throws:
        IOException