Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void giveFeedback(Reply reply) {
- PostType postType = reply.getType();
- if (postType == PostType.HELPFUL) {
- reply.addRating(new Rating("Winner"));
- } else {
- reply.addRating(new Rating("Agree"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement