import { IUser } from '../users';
import { RoomType } from './RoomType';

export interface IRoom {
    id: string;
    name: string;
    type: RoomType;
    creator: IUser;
    usernames: Array<string>;
    isDefault?: boolean;
    messageCount?: number;
    createdAt?: Date;
    updatedAt?: Date;
    lastModifiedAt?: Date;
}

import { IUser } from '../users';
import { RoomType } from './RoomType';

export interface IRoom {
    id: string;
    displayName: string;
    slugifiedName?: string;
    type: RoomType;
    creator: IUser;
    usernames: Array<string>;
    isDefault?: boolean;
    isReadOnly?: boolean;
    displaySystemMessages?: boolean;
    messageCount?: number;
    createdAt?: Date;
    updatedAt?: Date;
    lastModifiedAt?: Date;
    customFields?: { [key: string]: object };
}

Add some properties to the room interface
Add some properties to the room interface
