Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPreRoomDeletePrevent

Hierarchy

  • IPreRoomDeletePrevent

Index

Methods

Optional checkPreRoomDeletePrevent

  • checkPreRoomDeletePrevent(room: IRoom, read: IRead, http: IHttp): Promise<boolean>
  • Checks whether the handler actually shall execute. This method can basically implement a filter.

    Parameters

    • room: IRoom

      The room which was being deleted

    • read: IRead

      An accessor to the environment

    • http: IHttp

      An accessor to the outside world

    Returns Promise<boolean>

    whether to run the execute or not

executePreRoomDeletePrevent

  • Method which is to be used to prevent a room from being deleted.

    Parameters

    • room: IRoom

      The room about to be deleted

    • read: IRead

      An accessor to the environment

    • http: IHttp

      An accessor to the outside world

    • persistence: IPersistence

      An accessor to the App's persistence storage

    Returns Promise<boolean>

    whether to prevent the room from being deleted

Generated using TypeDoc