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

MarkNotificationStatus

Extends:

Request → MarkNotificationStatus

This sets notification status

Constructor Summary

Public Constructor
public

Marks the passed notifications as something (this is async constructor).

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(notifications: Notification | NotificationMarkAllUnseen | Notification[] | NotificationCategory | NotificationGroup | string[], status: NotificationStatus) source

Marks the passed notifications as something (this is async constructor).

Override:

Request#constructor

Params:

NameTypeAttributeDescription
notifications Notification | NotificationMarkAllUnseen | Notification[] | NotificationCategory | NotificationGroup | string[]

Some group of notifications. If you pass strings they must be the IDs

status NotificationStatus