Package me.memerator.api.object
Class Comment
java.lang.Object
me.memerator.api.object.Comment
public class Comment extends Object
-
Constructor Summary
Constructors Constructor Description Comment(org.json.JSONObject items) -
Method Summary
Modifier and Type Method Description voiddelete()Deletes this comment, only works if you meet one of the following conditions 1) You own the meme 2) You made the commentMemegetAssociatedMeme()UsergetAuthor()StringgetCommentContent()intgetCommentId()InstantgetTimestamp()
-
Constructor Details
-
Comment
public Comment(org.json.JSONObject items)
-
-
Method Details
-
getCommentId
public int getCommentId()- Returns:
- this comment's ID.
-
getCommentContent
- Returns:
- the actual comment contents.
-
getTimestamp
- Returns:
- the timestamp of this comment
-
getAuthor
- Returns:
- the author of this comment.
-
getAssociatedMeme
- Returns:
- the meme this comment was left on.
-
delete
public void delete()Deletes this comment, only works if you meet one of the following conditions 1) You own the meme 2) You made the comment
-