Class IRtmStorageAbstract

Hierarchy

  • IRtmStorage

Constructors

Methods

  • Get the metadata of a specified channel.

    Parameters

    • channelName: string
    • channelType: RTM_CHANNEL_TYPE
    • Optional requestId: number

      The unique ID of this request.

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Get the metadata of a specified user.

    Parameters

    • userId: string
    • Optional requestId: number

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Remove the metadata of a specified channel.

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Remove the metadata of a specified user.

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Set the metadata of a specified channel.

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Set the metadata of a specified user.

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Subscribe the metadata update event of a specified user.

    Parameters

    • userId: string
    • Optional requestId: number

    Returns number

    • 0: Success.
    • < 0: Failure.
  • unsubscribe the metadata update event of a specified user.

    Parameters

    • userId: string

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Update the metadata of a specified channel.

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.
  • Update the metadata of a specified user.

    Parameters

    Returns number

    • 0: Success.
    • < 0: Failure.