mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-10 02:36:39 +00:00
19 lines
510 B
TypeScript
19 lines
510 B
TypeScript
import { Project } from "../types/Project";
|
|
import { Ticket } from "../types/Ticket";
|
|
import { User } from "../types/User";
|
|
|
|
export class UserVM {
|
|
public fullName: string;
|
|
public presentation: string;
|
|
public picture: string;
|
|
public projects: Project[];
|
|
public tickets: Ticket[];
|
|
|
|
public constructor(user: User) {
|
|
this.fullName = user.fullName;
|
|
this.presentation = user.presentation;
|
|
this.picture = user.picture;
|
|
this.projects = user.projects;
|
|
this.tickets = user.tickets;
|
|
}
|
|
}
|