Guest User

Untitled

a guest
Feb 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. /**
  2.  * Class that holds information about a specific user on Facepunch.
  3.  * The actual amount of available information depends on the function that returned the structure.
  4.  */
  5. public class FPUser
  6. {
  7.     private FPUser() {}
  8.    
  9.     private int id;
  10.     private String name;
  11.     private boolean online;
  12.    
  13.     // If a user is banned, these other properties will always be false.
  14.     private boolean banned, goldmember, moderator;
  15.    
  16.     private int joinYear;
  17.     private String joinMonth;
  18.     private int postCount;
  19.    
  20.     public int getId() { return id; }
  21.     public String getName() { return name; }
  22.    
  23.     public boolean isOnline() { return online; }
  24.     public boolean isBanned() { return banned; }
  25.     public boolean isGoldmember() { return goldmember; }
  26.     public boolean isModerator() { return moderator; }
  27.    
  28.     public int getJoinYear() { return joinYear; }
  29.     public String getJoinMonth() { return joinMonth; }
  30.     public int getPostCount() { return postCount; }
  31. }
Add Comment
Please, Sign In to add comment