export class RoomId {
  private static PREVIEW_ROOM_ID_BASE: number = 0x7fff0000;

  public static makeRoomPreviewerId(roomId: number): number {
    return (roomId & 0xffff) + RoomId.PREVIEW_ROOM_ID_BASE;
  }

  public static isRoomPreviewerId(roomId: number): boolean {
    return roomId >= RoomId.PREVIEW_ROOM_ID_BASE;
  }
}
