21 lines
430 B
TypeScript
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;
|
|
}
|