Beispiel #1
0
 /** Removed a participant form current room */
 public void remove_user(String user) {
   if (user != null && user.equals(user2)) user2 = null;
   if (user != null && user.equals(user1)) {
     if (user2 != null && !user2.equals("")) {
       user1 = user2;
       user2 = null;
     } else user1 = null;
   }
   if (get_occupancy() > 0) put();
   else delete();
 }
Beispiel #2
0
 public Room(String room_key) {
   key_name = room_key;
   put();
 }