Class User

java.lang.Object
me.memerator.api.object.User
Direct Known Subclasses:
Profile

public class User
extends Object
  • Constructor Details

    • User

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

    • getUsername

      public String getUsername()
      Returns:
      the user's username
    • getId

      public long getId()
      Returns:
      the user's ID
    • getBio

      public String getBio()
      Returns:
      the user's bio or null if there isn't one
    • getFollowerCount

      public int getFollowerCount()
      Returns:
      the amount of followers this user has
    • getFollowingCount

      public int getFollowingCount()
      Returns:
      the amount of users this user is following
    • getMemeCount

      public int getMemeCount()
      Returns:
      the amount of memes this user has
    • isVerified

      public boolean isVerified()
      Returns:
      the user's verification status
    • isStaff

      public boolean isStaff()
      Returns:
      the user's staff member status
    • isTranslator

      public boolean isTranslator()
      Returns:
      the user's translator status
    • isPro

      public boolean isPro()
      Returns:
      the user's pro status
    • getProfileUrl

      public String getProfileUrl()
      Returns:
      the user's profile link
    • getJoinedAt

      public String getJoinedAt()
      Deprecated.
      Returns:
      the user's join time
      See Also:
      getJoinTimestamp()
    • getJoinTimestamp

      public Instant getJoinTimestamp()
      Returns:
      the user's join timestamp
    • getMemes

      public List<Meme> getMemes()
      Returns:
      a list of this user's memes