```java
public class Room{
String roomId;
String key;
Boolean openStatus;
public Room() {
this.roomId = UUID.randomUUID().toString();
this.key = UUID.randomUUID().toString();
this.openStatus = false;
}
public String getRoomId() {
return roomId;
}
public String getKey() {
return key;
}
public Boolean getOpenStatus() {
return openStatus;
}
public void openOrClose(String key) {
if (this.key.equals(key)) {
this.openStatus = !this.openStatus;
}
}
}
public class User {
String name;
Map<String, String> roomKeys =new HashMap<String, String>();
Map<String, Room> rooms =new HashMap<String, Room>();
public User(String name) {
this.name = name;
}
public String getName() {
return name;
}
public Map<String, String> getRoomKeys() {
return roomKeys;
}
public Map<String, Room> getRooms() {
return rooms;
}
}
```