ThreadNotification is an interface representing a thread notification. It includes the id, userId, type, commentId, context, createdAt, thread, comment, and user each having their own properties.

interface ThreadNotification {
    comment: BasicComment;
    commentId: number;
    context: string;
    createdAt: number;
    id: number;
    thread: BasicThread;
    type: string;
    user: BasicUser;
    userId: number;
}

Properties

comment: BasicComment

comment is an instance of BasicComment representing the comment associated with the thread notification.

commentId: number

commentId is a number representing the id of the comment associated with the thread notification.

context: string

context is a string representing the context of the thread notification.

createdAt: number

createdAt is a number representing the timestamp when the thread notification was created.

id: number

id is a number representing the id of the thread notification.

thread: BasicThread

thread is an instance of BasicThread representing the thread associated with the thread notification.

type: string

type is a string representing the type of the thread notification.

user: BasicUser

user is an instance of BasicUser representing the user associated with the thread notification.

userId: number

userId is a number representing the id of the user associated with the thread notification.