Package me.memerator.api.object
Class User
java.lang.Object
me.memerator.api.object.User
- Direct Known Subclasses:
Profile
public class User extends Object
-
Constructor Summary
Constructors Constructor Description User(org.json.JSONObject items) -
Method Summary
Modifier and Type Method Description StringgetBio()intgetFollowerCount()intgetFollowingCount()longgetId()StringgetJoinedAt()Deprecated.InstantgetJoinTimestamp()intgetMemeCount()List<Meme>getMemes()StringgetProfileUrl()StringgetUsername()booleanisPro()booleanisStaff()booleanisTranslator()booleanisVerified()
-
Constructor Details
-
User
public User(org.json.JSONObject items)
-
-
Method Details
-
getUsername
- Returns:
- the user's username
-
getId
public long getId()- Returns:
- the user's ID
-
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
- Returns:
- the user's profile link
-
getJoinedAt
Deprecated.- Returns:
- the user's join time
- See Also:
getJoinTimestamp()
-
getJoinTimestamp
- Returns:
- the user's join timestamp
-
getMemes
- Returns:
- a list of this user's memes
-