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 Details

    • Profile

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

    • getProExpirationDate

      @Nullable public @Nullable String getProExpirationDate()
      Returns:
      the time when your Pro subscription expires, if you have one
    • getProStartDate

      @Nullable public @Nullable String 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

      public void setUsername​(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. If you are verified, you will lose verification.
      Parameters:
      username - the username to change to Throws IllegalArgumentException if the requirements weren't met
    • setBio

      public void setBio​(String bio)
      Set your bio
      Parameters:
      bio - the new bio to set
    • getNotifications

      public List<Notification> getNotifications()
      Returns:
      your notifications
    • getReports

      public List<Report> getReports()
      Returns:
      your reports
    • getReport

      public Report getReport​(int id)
      Gets a specific report by ID
      Parameters:
      id - the report id
      Returns:
      the report
    • getNotificationCount

      public int getNotificationCount()
      Returns:
      your amount of notifications
    • getIntegrations

      public UserIntegrations getIntegrations()
      Returns as a UserIntegrations object, from there you can get each integration type.
      Returns:
      the integrations.