Class UserRepository

Allows retrieving users. An instance of this class must be obtained using getUserRepository

Hierarchy

  • UserRepository

Constructors

Properties

currentSubscriptions: Set<string> = ...
pendingSubscriptions: Set<string> = ...
presenceService: PresenceService
requestSubscriptionFulfilledSubject: Subject<string> = ...
requestSubscriptionSubject: Subject<string> = ...
state$: Observable<{}>

Methods

  • Allows obtaining a representation of any user of the system

    Returns

    An observable emitting a representation of the user with the provided ID as soon as it is available and, subsequently, all the updates that occur in any of its properties.

    Parameters

    • userId: string

      The id of the requested user

    Returns Observable<undefined | UserNg>

  • Allows obtaining a representation of any user of the system

    Returns

    An observable emitting a representation of the user with the provided ID as soon as it is available and, subsequently, all the updates that occur in any of its properties.

    Parameters

    • address: string

      The address of the requested user

    Returns Observable<undefined | UserNg>

Generated using TypeDoc