Class Group

This class allows access to the details of each group a GroupRepository must be used to obtain instances of this class.

Hierarchy

  • Group

Constructors

  • Parameters

    • id: string
    • name: string
    • owner: string
    • participants: Iterable<string>

    Returns Group

Properties

id: string

The unique id that identifies the group

name: string

The name of the group

owner: string

The user that owns the group

participants: readonly string[]

A list of the users that belong to the group

Methods

  • Creates a new Group object removing the provided participants

    Parameters

    • Rest ...participants: string[]

    Returns Group

  • Creates a new Group object adding the provided participants

    Parameters

    • Rest ...participants: string[]

    Returns Group

  • Creates a new Group object with the provided parameter changed

    Parameters

    • __namedParameters: {
          name: undefined | string;
          participants: undefined | readonly string[];
      } = {}
      • name: undefined | string
      • participants: undefined | readonly string[]

    Returns Group

Generated using TypeDoc