Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1. public class HRBOPresenceStatus {
  2.  
  3.     private String name;
  4.     private String departmentName;
  5.     private String officeName;
  6.     private String teamName;
  7.     private String login;
  8.     private boolean isOnline;
  9.  
  10.     public HRBOPresenceStatus(String name, String departmentName, String officeName, String teamName,
  11.         String login, boolean isOnline)
  12.     {
  13.         this.name = name;
  14.         this.departmentName = departmentName;
  15.         this.officeName = officeName;
  16.         this.teamName = teamName;
  17.         this.login = login;
  18.         this.isOnline = isOnline;
  19.     }
  20.  
  21.     public boolean isOnline() {
  22.         return isOnline;
  23.     }
  24.  
  25.     public String getValue(int depth) {
  26.         switch (depth) {
  27.         case 0:
  28.             return name;
  29.         case 1:
  30.             return departmentName;
  31.         case 2:
  32.             return officeName;
  33.         case 3:
  34.             return teamName;
  35.         case 4:
  36.             return login;
  37.         }
  38.         return null;
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement