Home Reference Source
import {NotificationGroup} from '~/models/NotificationCategorizer.js'
public class | source

NotificationGroup

Represents a notification group

Constructor Summary

Public Constructor
public

constructor(primaryNotification: Notification, siblings: Notification[])

Member Summary

Public Members
public get

Returns the total count of notifications

public
public

Method Summary

Public Methods
public

Iterates over all groups in this

public

Returns all IDs

public

Returns if any item in the group is unread

public

Returns unique senders (excluding primary).

Public Constructors

public constructor(primaryNotification: Notification, siblings: Notification[]) source

Params:

NameTypeAttributeDescription
primaryNotification Notification

The primary (and most recent) notification

siblings Notification[]

Related notifs w/ same action

Public Members

public get count: number source

Returns the total count of notifications

Return:

number

public primaryNotification: Notification source

public siblings: Notification[] source

Public Methods

public * [Symbol.iterator](): Generator<Notification> source

Iterates over all groups in this

public * getIds(): Generator<string> source

Returns all IDs

Return:

Generator<string>

public async getStatus(): NotificationStatus source

Returns if any item in the group is unread

public * senders(): Generator<User> source

Returns unique senders (excluding primary).

Return:

Generator<User>