import { RoomMember, RoomOptions } from './types'; import { Game } from '../misc/games'; /** * The room object. Data including general room details * * @author Eirik Måseidvåg */ export default class Room { /** * The room ID */ id: string; /** * The name of the room */ name: string; /** * The room description */ description: string; /** * The game the room is made for */ readonly game: Game; /** * Cover image for the room. Will use games default cover if null */ cover: string | null; /** * Determines weather the room is private or public */ isPrivate: boolean; /** * The timestamp the room was created */ readonly created: number; /** * The timestamp the room was last update */ updated: number; /** * The members of the room * Contains only authenticated users */ members: Array; constructor(options: RoomOptions); }