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

ChatMessageFile

Instances of this class represents a file in a chat message. This class must not be directly instantiated. Instances of this class can be obtained using ChatMessage#getData.

Method Summary

Public Methods
public

Returns the name of the file.

public

async getType(): Promise<string>

Returns the mime-type of the file.

public

Returns the URL of the file.

Public Methods

public getName(): string source

Returns the name of the file.

Return:

string

Name of the file

public async getType(): Promise<string> source

Returns the mime-type of the file.

Return:

Promise<string>

A promise fulfilled with the mime-type of the file

public getUrl(): string source

Returns the URL of the file.

Return:

string

URL of the file