A collection of user role objects fetched from default. Uses id as key.

Export

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Private

    Creates an instance of MPUserRoleCollection.

    Parameters

    • userroles: MPUserRole[]

      A collection of user roles

    Returns MPUserRoleCollection

Properties

map: Map<String, MPUserRole>

The map the objects are kept in.

Accessors

  • get size(): number
  • The number of objects in the collection.

    Returns number

Methods

  • Gets all objects contained in the collection.

    Returns MPUserRole[]

  • Get a object by its identifier.

    Parameters

    • id: string

    Returns MPUserRole

  • Creator for MPUserRoleCollection, used to decode JSON from the MapsIndoors SDK.

    Parameters

    • Optional object: any

    Returns MPUserRoleCollection

    Static

Generated using TypeDoc