Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoomController

Create and retrieve rooms.

Hierarchy

  • RoomController

Index

Methods

blank

  • blank(): Room

byId

  • byId(id: string, meta?: any): Room
  • Get a room by ID from memory. If found and given meta, updates and returns updated room. If given meta and ID not found, creates new room.

    Parameters

    • id: string
    • Optional meta: any

    Returns Room

create

  • create(meta?: IRoom): Room
  • Create a room, populated attributes from meta.

    Parameters

    • Default value meta: IRoom = {}

    Returns Room

random

  • random(): Room

Generated using TypeDoc