Home Reference Source
import {Group} from '@quobis/sippojs'
public class | source

Group

This class allows access to the details of each group

Method Summary

Public Methods
public

The unique id that identifies the group

public

Get the name of a group

public

Get a list of id of users that belong to the group

public

Returns the phonebook associated to this group

public

minusParticipants(participants: ...string): Group

Creates a new Group object removing the provided participants

public

plusParticipants(participants: ...string): Group

Creates a new Group object adding the provided participants

public

with(args: Object): Group

Creates a new Group object with the provided parameter changed

Public Methods

public getId(): string source

The unique id that identifies the group

Return:

string

public getName(): string source

Get the name of a group

Return:

string

public getParticipants(): ImmutableSet<string> source

Get a list of id of users that belong to the group

Return:

ImmutableSet<string>

public getPhonebook(): ImmutableSet<Object> source

Returns the phonebook associated to this group

Return:

ImmutableSet<Object>

Return Properties:

NameTypeAttributeDescription
name string
address string

public minusParticipants(participants: ...string): Group source

Creates a new Group object removing the provided participants

Params:

NameTypeAttributeDescription
participants ...string

Return:

Group

public plusParticipants(participants: ...string): Group source

Creates a new Group object adding the provided participants

Params:

NameTypeAttributeDescription
participants ...string

Return:

Group

public with(args: Object): Group source

Creates a new Group object with the provided parameter changed

Params:

NameTypeAttributeDescription
args Object
args.name string
  • optional
args.participants Iterable<string>
  • optional

Return:

Group