Class Comment

java.lang.Object
me.memerator.api.object.Comment

public class Comment
extends Object
  • Constructor Details

    • Comment

      public Comment​(org.json.JSONObject items)
  • Method Details

    • getCommentId

      public int getCommentId()
      Returns:
      this comment's ID.
    • getCommentContent

      public String getCommentContent()
      Returns:
      the actual comment contents.
    • getTimestamp

      public Instant getTimestamp()
      Returns:
      the timestamp of this comment
    • getAuthor

      public User getAuthor()
      Returns:
      the author of this comment.
    • getAssociatedMeme

      public Meme 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