Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit eefbdc3

Browse files
committed
Add javadoc
1 parent b502911 commit eefbdc3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/main/java/com/scorpiac/javarant/DevRantAuth.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ public class DevRantAuth {
1414
this.devRant = devRant;
1515
}
1616

17+
/**
18+
* Vote on a rant.
19+
*
20+
* @param id The rant to vote on.
21+
* @param vote The vote to cast.
22+
* @return The rant.
23+
*/
1724
public Result<Rant> voteRant(int id, Vote vote) {
1825
return devRant.getRequestHandler().post(
1926
ApiEndpoint.RANTS.toString() + '/' + id + '/' + ApiEndpoint.VOTE.toString(),
@@ -22,6 +29,13 @@ public Result<Rant> voteRant(int id, Vote vote) {
2229
);
2330
}
2431

32+
/**
33+
* Vote on a comment.
34+
*
35+
* @param id The comment to vote on.
36+
* @param vote The vote to cast.
37+
* @return The comment.
38+
*/
2539
public Result<Comment> voteComment(int id, Vote vote) {
2640
return devRant.getRequestHandler().post(
2741
ApiEndpoint.COMMENTS.toString() + '/' + id + '/' + ApiEndpoint.VOTE.toString(),

0 commit comments

Comments
 (0)