lecoffre-ressources/src/Notary/UserNotification.ts
2023-09-07 11:55:35 +02:00

21 lines
430 B
TypeScript

import Resource from "../Resource";
import { Expose, Type } from "class-transformer";
import User from "./User";
import Notification from "./Notification";
export default class UserNotification extends Resource {
@Expose()
public uid?: string;
@Expose()
@Type(() => Notification)
public notification!: Notification;
@Expose()
@Type(() => User)
public user!: User;
@Expose()
public read: boolean = false;
}