dot big bang

Developer API
Menu

Class User

All
  • Public
  • Public/Protected
  • All

Hierarchy

  • User

Index

Accessors

handle

  • get handle(): string
  • The handle of the User, or the empty string if the User isn't logged-in. The handle is a word with up to 16 characters. It can contain letters (upper and lower case), digits plus hyphen and underscore. Like the id, the handle is unique across all existing Users, there can't be two Users with the same handle.

    Returns string

id

  • get id(): string
  • The identifier string of the User, or the empty string if the User isn't logged-in. The id is unique across all existing Users, there can't be two Users with the same id.

    Returns string

isLoggedIn

  • get isLoggedIn(): boolean
  • Indicates whether the User has a dbb account and is logged-in.

    Returns boolean

peer

  • Gets the Peer this User is associated to.

    Returns Peer

Methods

getEntitlementsForUser

  • getEntitlementsForUser(): any[]
  • Returns any[]

isEntitlementOwnedForProductCode

  • isEntitlementOwnedForProductCode(productCode: string): boolean
  • Parameters

    • productCode: string

    Returns boolean