public interface Votable
Vote| Modifier and Type | Interface and Description |
|---|---|
static class |
Votable.VoteValue
The type of vote (negative or positive).
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
getVotes()
Returns the total sum of all votes for this object.
|
void |
setVotes(Integer votes)
Sets the total votes for this object.
|
boolean |
voteDown(String userid)
Downvotes the object.
|
boolean |
voteUp(String userid)
Upvotes the object.
|
boolean voteUp(String userid)
userid - id of voterboolean voteDown(String userid)
userid - id of voterInteger getVotes()
void setVotes(Integer votes)
votes - the number of votesCopyright © 2018 Erudika. All rights reserved.