Represents the API for the Hotel Suite webview.

Hierarchy

  • HotelSuiteWebview

Implements

  • IHotelSuiteWebviewAPI

Constructors

Properties

off: EventOverload = ...

Removes an event handler for the specified event type.

Param

The type of the event, which can be one of the following values: "key-write", "key-read", or "key-removed".

Param

The event handler function.

on: EventOverload = ...

Adds an event handler for the specified event type.

Param

The type of the event, which can be one of the following values: "key-write", "key-read", or "key-removed".

Param

The event handler function.

Methods

  • Requests Bluetooth access.

    Parameters

    Returns Number

    The message ID (QueueId).

    See

    IBluetoothAccess

  • Cancels an ongoing operation identified by its ID.

    Parameters

    • Id: Number

      The message ID (QueueId).

    Returns Number

    A message sent to the webview indicating the cancellation of the operation.

  • Checks in a guest.

    Parameters

    Returns Number

    The message ID (QueueId).

    See

    ICheckIn

  • Checks out the guest.

    Returns Number

    The message ID (QueueId).

  • Copies a key for a guest.

    Parameters

    • LockId: Number

      The ID of the lock.

    • GuestName: String

      The name of the guest.

    Returns Number

    The message ID (QueueId).

  • Moves a guest from one room to another.

    Parameters

    • SourceLockId: Number

      The ID of the source room's lock.

    • TargetLockId: Number

      The ID of the target room's lock.

    Returns Number

    The message ID (QueueId).

  • Performs a quick check-out for multiple rooms.

    Parameters

    • LockIds: Number[]

      The IDs of the locks to be checked out.

    Returns Number

    The message ID (QueueId).

  • Requests facility data from the webview.

    Returns Number

    A number indicating the success of the operation.

    Remarks

    This method triggers the webview to provide facility-data information.

  • Private

    Sends a message to the webview.

    Parameters

    • wrapper: MessageWrapper

      The message wrapper containing the action and message.

    Returns Number

    The message ID.

  • Updates reservation information.

    Parameters

    • data: ICheckIn

      The updated reservation data.

    Returns Number

    The message ID (QueueId).

Generated using TypeDoc