aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/users
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 11:02:35 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 11:02:35 +0200
commit69f616ab3aeefd6ce330600604df90f2f48bfe3b (patch)
tree1b40d6005e645d97a7db9784f32cd90b156528fa /client/src/app/shared/users
parent75fb0c0b2efe7fb952d45d2bf111e9594f7d5b42 (diff)
downloadPeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.tar.gz
PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.tar.zst
PeerTube-69f616ab3aeefd6ce330600604df90f2f48bfe3b.zip
Use shared models
Diffstat (limited to 'client/src/app/shared/users')
-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