foul-magics/Mage.Server/src/main/java/mage/server/RoomImpl.java
Francesco Burato 6e3750d50a [app-wiring-refactor]: Apply review comments:
- Add reference to original library in `FluentBuilder`.
- Change `I<Name>` notation to `<Name>Impl` notation.
- Move error config to test resources
- Add comment with config instruction
- Add config to the documentation
2020-11-12 20:12:50 +00:00

37 lines
641 B
Java

package mage.server;
import mage.server.managers.ChatManager;
import java.util.UUID;
/**
* @author BetaSteward_at_googlemail.com
*/
public abstract class RoomImpl implements Room {
private final UUID chatId;
private final UUID roomId;
public RoomImpl(ChatManager chatManager) {
roomId = UUID.randomUUID();
chatId = chatManager.createChatSession("Room " + roomId);
}
/**
* @return the chatId
*/
@Override
public UUID getChatId() {
return chatId;
}
/**
* @return the roomId
*/
@Override
public UUID getRoomId() {
return roomId;
}
}