Package me.memerator.api.object
Class Profile
java.lang.Object
me.memerator.api.object.User
me.memerator.api.object.Profile
public class Profile extends User
A profile is a user, but has more details.
Usually, only the authenticated user can see these.
-
Constructor Summary
Constructors Constructor Description Profile(org.json.JSONObject items) -
Method Summary
Modifier and Type Method Description UserIntegrationsgetIntegrations()Returns as a UserIntegrations object, from there you can get each integration type.intgetNotificationCount()List<Notification>getNotifications()@Nullable StringgetProExpirationDate()@Nullable StringgetProStartDate()ReportgetReport(int id)Gets a specific report by IDList<Report>getReports()booleanisProActive()voidsetBio(String bio)Set your biovoidsetUsername(String username)Set your username Username requirements: Be between 2 and 32 characters Not taken Can't be only numbers No characters other than letters, numbers, periods, and underscores.Methods inherited from class me.memerator.api.object.User
getBio, getFollowerCount, getFollowingCount, getId, getJoinedAt, getJoinTimestamp, getMemeCount, getMemes, getProfileUrl, getUsername, isPro, isStaff, isTranslator, isVerified
-
Constructor Details
-
Profile
public Profile(org.json.JSONObject items)
-
-
Method Details
-
getProExpirationDate
- Returns:
- the time when your Pro subscription expires, if you have one
-
getProStartDate
- Returns:
- the time when your Pro subscription started, if you have one
-
isProActive
public boolean isProActive()- Returns:
- if you have an active pro subscription
-
setUsername
Set your username Username requirements: Be between 2 and 32 characters Not taken Can't be only numbers No characters other than letters, numbers, periods, and underscores. If you are verified, you will lose verification.- Parameters:
username- the username to change to Throws IllegalArgumentException if the requirements weren't met
-
setBio
Set your bio- Parameters:
bio- the new bio to set
-
getNotifications
- Returns:
- your notifications
-
getReports
- Returns:
- your reports
-
getReport
Gets a specific report by ID- Parameters:
id- the report id- Returns:
- the report
-
getNotificationCount
public int getNotificationCount()- Returns:
- your amount of notifications
-
getIntegrations
Returns as a UserIntegrations object, from there you can get each integration type.- Returns:
- the integrations.
-