Saltar al contenido principal

Function: conversations()

Call Signature​

function conversations(
context,
siteUrl,
options
): Promise<ListPage<ConversationSummary>>;

Defined in: areas/messages/messages.ts:152

The person's conversations, latest first, with their last message as text. With limit, a page of them (see "Long lists" in the docs' concepts), the only ones Moodle's service returns.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
optionsWithLimit<PageOptions>

Returns​

Promise<ListPage<ConversationSummary>>

Call Signature​

function conversations(
context,
siteUrl,
options?
): Promise<ConversationSummary[]>;

Defined in: areas/messages/messages.ts:153

The person's conversations, latest first, with their last message as text. With limit, a page of them (see "Long lists" in the docs' concepts), the only ones Moodle's service returns.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
options?WithoutLimit<PageOptions>

Returns​

Promise<ConversationSummary[]>

Call Signature​

function conversations(
context,
siteUrl,
options?
): Promise<
| ListPage<ConversationSummary>
| ConversationSummary[]>;

Defined in: areas/messages/messages.ts:154

The person's conversations, latest first, with their last message as text. With limit, a page of them (see "Long lists" in the docs' concepts), the only ones Moodle's service returns.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
options?PageOptions

Returns​

Promise< | ListPage<ConversationSummary> | ConversationSummary[]>