// Path: src/main/java/com/yyqian/imagine/service/VoteService.java
// public interface VoteService {
// 
//   PostVote createPostVote(PostVote postVote);
// 
//   CommentVote createCommentVote(CommentVote commentVote);
// 
//   PostVote upVotePostById(Long id);
// 
//   PostVote downVotePostById(Long id);
// 
//   CommentVote upVoteCommentById(Long id);
// 
//   CommentVote downVoteCommentById(Long id);
// 
//   boolean isPostVotedByCurrentUser(Post post);
// 
//   boolean isCommentVotedByCurrentUser(Comment comment);
// 
//   Collection<Post> getPostsVotedByCurrentUser();
// 
//   Collection<Comment> getCommentsVotedByCurrentUser();
// 
// }


import com.yyqian.imagine.service.VoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.web.bind.annotation.RequestMethod.POST;
package com.yyqian.imagine.controller;



/**
 * Created on 12/16/15.
 *
 * @author Yinyin Qian
 */
@RestController
public class VoteController {

// Path: src/main/java/com/yyqian/imagine/service/VoteService.java
// public interface VoteService {
// 
//   PostVote createPostVote(PostVote postVote);
// 
//   CommentVote createCommentVote(CommentVote commentVote);
// 
//   PostVote upVotePostById(Long id);
// 
//   PostVote downVotePostById(Long id);
// 
//   CommentVote upVoteCommentById(Long id);
// 
//   CommentVote downVoteCommentById(Long id);
// 
//   boolean isPostVotedByCurrentUser(Post post);
// 
//   boolean isCommentVotedByCurrentUser(Comment comment);
// 
//   Collection<Post> getPostsVotedByCurrentUser();
// 
//   Collection<Comment> getCommentsVotedByCurrentUser();
// 
// }


// Path: src/main/java/com/yyqian/imagine/controller/VoteController.java
import com.yyqian.imagine.service.VoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.web.bind.annotation.RequestMethod.POST;

package com.yyqian.imagine.controller;



/**
 * Created on 12/16/15.
 *
 * @author Yinyin Qian
 */
@RestController
public class VoteController {

  private final VoteService voteService;