aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/users/user.model.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts
index f7859f495..09722704a 100644
--- a/client/src/app/shared/users/user.model.ts
+++ b/client/src/app/shared/users/user.model.ts
@@ -1,6 +1,9 @@
1export class User { 1import { User as UserServerModel } from '../../../../../shared';
2
3export class User implements UserServerModel {
2 id: number; 4 id: number;
3 username: string; 5 username: string;
6 email: string;
4 role: string; 7 role: string;
5 displayNSFW: boolean; 8 displayNSFW: boolean;
6 createdAt: Date; 9 createdAt: Date;
@@ -8,12 +11,14 @@ export class User {
8 constructor(hash: { 11 constructor(hash: {
9 id: number, 12 id: number,
10 username: string, 13 username: string,
14 email: string,
11 role: string, 15 role: string,
12 displayNSFW?: boolean, 16 displayNSFW?: boolean,
13 createdAt?: Date, 17 createdAt?: Date,
14 }) { 18 }) {
15 this.id = hash.id; 19 this.id = hash.id;
16 this.username = hash.username; 20 this.username = hash.username;
21 this.email = hash.email;
17 this.role = hash.role; 22 this.role = hash.role;
18 this.displayNSFW = hash.displayNSFW; 23 this.displayNSFW = hash.displayNSFW;
19 24