/** 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(); }
public Room(String room_key) { key_name = room_key; put(); }