forked from External/mage
- 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
37 lines
641 B
Java
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;
|
|
}
|
|
|
|
|
|
}
|