Home Reference Source
import Notifications from '~/models/Request/Notifications.js'
public class | source

Notifications

Extends:

RequestPagedRequest → Notifications

Obtains a series of Notification objects

Constructor Summary

Public Constructor
public

Requires authorization.

Method Summary

Public Methods
public

Returns if was deleted

Inherited Summary

From class Request
protected
public

cancel()

Cancels the request.

public

format(data: Object): Object

Formats the request object and returns an object of Request<T>'s T.

public

async run(o: Object): Promise

Performs the request

From class PagedRequest
public get

If they are definetly more.

public get

Gets the current page.

public set

Sets the current page.

public

The async iterator loads individual items.

public

async getPage(page: number, mutate: boolean): Object

Gets a specific page.

public

async nextPage(): Object

Runs for the next page (starts at zero).

Public Constructors

public constructor() source

Requires authorization. Undefined behavior if not, what is likely going to happen is a 401 error but just don't call without auth.

Override:

PagedRequest#constructor

Public Methods

public format(): boolean source

Returns if was deleted

Override:

Request#format

Return:

boolean