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

Leaderboard

Extends:

Request → Leaderboard

Obtains notification data

Constructor Summary

Public Constructor
public

Only requires authorization

Method Summary

Public Methods
public

format(data: Object): Object

Returns the notification data as an object

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

Public Constructors

public constructor() source

Only requires authorization

Override:

Request#constructor

Public Methods

public format(data: Object): Object source

Returns the notification data as an object

Override:

Request#format

Params:

NameTypeAttributeDescription
data Object

Return:

Object

Return Properties:

NameTypeAttributeDescription
unseenCount number

Amount of unseen notifications