Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FriendApplicationsQuery

A paginated query for listing friend applications. Create via UserModule.createFriendApplicationsQuery.

example
const query = NCEngine.userModule.createFriendApplicationsQuery({ pageSize: 20 });
const page = await query.loadNextPage();
if (page.isOk) {
console.log('Applications:', page.data.length);
}

Hierarchy

Index

Accessors

  • get isLoading(): boolean
  • Whether the query is currently loading data

    Returns boolean

  • get hasNext(): boolean
  • Whether there are more pages of data to load

    Returns boolean

Methods

  • Loads the next page of query results. Returns a busy error if a load operation is already in progress.

    example
    const result = await query.loadNextPage();
    if (result.isOk) {
    console.log('Data:', result.data);
    }

    Returns Promise<NCResult<PageData<FriendApplicationInfo>>>

    A promise resolving to the query result