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

ContactRetriever

Constructor Summary

Public Constructor
public

constructor(stack: WacProxy)

Constructs a get contacts instance

Method Summary

Public Methods
public

Get the avatar for all device contacts

public

Get the device contacts Return type : <wac-contact>[]

public

async getContactsWac(): *

If we are on device, get the contacts from the WAC without the device contacts.

Public Constructors

public constructor(stack: WacProxy) source

Constructs a get contacts instance

Params:

NameTypeAttributeDescription
stack WacProxy

Public Methods

public getAvatarDeviceContacts(): Map source

Get the avatar for all device contacts

Return:

Map

A map with contactDeviceId as key and avatar as value

public getContactsDevice(): * source

Get the device contacts Return type : <wac-contact>[]

Return:

*

public async getContactsWac(): * source

If we are on device, get the contacts from the WAC without the device contacts. In other case, get all the contacts stored in the WAC

Return type : <wac-contact>[]

Return:

*