5180 fichiers 38.5 Mo 0 téléchargements 215 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / api / notification / MentionNotificationBubbleItem.ts
MentionNotificationBubbleItem.ts 799 o Télécharger le fichier
import { IMentionEntry } from '../mentions';
import { NotificationBubbleItem } from './NotificationBubbleItem';
import { NotificationBubbleType } from './NotificationBubbleType';

/**
 * A notification bubble that carries a full mention entry, so the dedicated
 * mention bubble layout can render the sender's avatar (from the figure) and
 * the go-to-room action — data the plain NotificationBubbleItem can't hold.
 */
export class MentionNotificationBubbleItem extends NotificationBubbleItem {
    private _mention: IMentionEntry;

    constructor(mention: IMentionEntry) {
        super(mention.message, NotificationBubbleType.MENTION, null, null, mention.senderUsername);

        this._mention = mention;
    }

    public get mention(): IMentionEntry {
        return this._mention;
    }
}
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser