Class Rating

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

public class Rating
extends Object
  • Constructor Details

    • Rating

      public Rating​(org.json.JSONObject items, Meme meme)
  • Method Details

    • getUser

      public User getUser()
      Get the user who rated this meme
      Returns:
      the user
    • getRating

      public int getRating()
      Get the rating the user gave
      Returns:
      the rating
    • getTimestamp

      public OffsetDateTime getTimestamp()
      The timestamp of this rating as an OffsetDateTime
      Returns:
      the timestamp
    • getMeme

      public Meme getMeme()
      Get the meme associated with this Rating
      Returns:
      the meme