Skip to content

Commit

Permalink
Remove Votable.getUpvotes() and getDownvotes()
Browse files Browse the repository at this point in the history
With recent changes in Reddit, getUpvotes() will getScore() and getDownvotes() will always return 0. See this commit:

  reddit-archive/reddit@8c9ad4e
  • Loading branch information
mattbdean committed Feb 4, 2015
1 parent 6a9aaa0 commit 0c81a0e
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/main/java/net/dean/jraw/models/attr/Votable.java
Original file line number Diff line number Diff line change
@@ -1,37 +1,14 @@
package net.dean.jraw.models.attr;

import net.dean.jraw.models.meta.JsonProperty;
import net.dean.jraw.models.VoteDirection;
import net.dean.jraw.models.meta.JsonProperty;

/**
* Provides a way to show that this Thing is able to be voted on.
*
* @see net.dean.jraw.models.VoteDirection
*/
public interface Votable extends JsonAttribute {

/**
* Gets the amount of upvotes the object has received
*
* @return The amount of upvotes the object has received
* @deprecated With recent changes in Reddit, this will always be equivalent to {@link #getScore()}. See
* <a href="https://github.com/reddit/reddit/commit/8c9ad4e">this commit</a> for more information.
*/
@JsonProperty
@Deprecated
public Integer getUpvotes();

/**
* Gets the amount of downvotes the object has received.
*
* @return The amount of downvotes the post has received
* @deprecated With recent changes in Reddit, this will always return 0. See
* <a href="https://github.com/reddit/reddit/commit/8c9ad4e">this commit</a> for more information.
*/
@JsonProperty
@Deprecated
public Integer getDownvotes();

/**
* The net score of this Votable model
*
Expand Down

0 comments on commit 0c81a0e

Please sign in to comment.