Options
All
  • Public
  • Public/Protected
  • All
Menu

User blocking table service.

Hierarchy

  • BlockService

Index

Constructors

constructor

Methods

blockUser

  • blockUser(userID: string, blockedUserID: string): Promise<NBBlock>

getBlockedUsers

  • getBlockedUsers(userID: string): Promise<NBUser[]>

getBlocks

  • getBlocks(userID: string): Promise<NBBlock[]>

hasBlocked

  • hasBlocked(userID: string, otherUserID: string): Promise<boolean>
  • Determine whether or not the other user has the user blocked.

    Parameters

    • userID: string

      The user's ID.

    • otherUserID: string

      The other user's ID.

    Returns Promise<boolean>

    Whether or not the other user has the user blocked.

isBlocked

  • isBlocked(userID: string, otherUserID: string): Promise<boolean>
  • Determine whether or not a user is blocked.

    Parameters

    • userID: string

      The user's ID.

    • otherUserID: string

      The other user's ID.

    Returns Promise<boolean>

    Whether or not the user is blocked.

unblockUser

  • unblockUser(userID: string, blockedUserID: string): Promise<void>

Generated using TypeDoc